zend-framework

zend framework : include external module in bootstrapper or create plugin

I am new to zend framework and having very basic doubt.I have created one application which follows its own framework. I want to integrate this application with zend framework. whenever any request comes to zend framework, I want to forward same request to my application to do some operations and then give control back to zend framework....

Rendering layout parts in Zend Framework

My app is supposed to work like this. First, the default Action of the Default controller (according to URL) does it's job. For the purpose of this question lets name it MyController and indexAction. Then it forwards ($this->_forward) to my LayoutController menuAction which renders navigation part (menu from database) and forwards to fo...

zend newbie - pushing values back to form in a view

Using a regular HTML form (not Zend form), how do I push the value of a posted variable back to the form on re-display. Is there a zend way of doing this? controller: $name = $f->filter($this->_request->getPost('your_name')); $this->view->your_name = $name; view: <form action="" method="post"> Name:<br><input type="text" value="<?val...

PHP framework similar Zend Framework

I uses Zend in my project: it does not need MVC, but it uses Zend classes like Zend_Translate or Zend_Validate. I should not create Zend environment for validate few HTTP request params I just need Form and Validators. Zend is more class library then framework. I'm looking the similar framework for PHP 5.3. What can you suggest me? ...

Zend_Form_Element_MultiSelect element definition

Is there any way to define wich options in Zend_Form_Element_MultiSelect would be selected by default?? ...

Setting default selected option for Zend_Form_Element_Select

I have a Zend_Form with Zend_Form_Select element. I populate it from array (code inside the *Application_Form_MyForm extends Zend_Form* class): $options = array('first option', 'second option', 'third option'); $this->getElement('mySelect')->addMultiOptions($options); How can I choose which value is gonna be selected automatically, as...

Reduce number of included files

Hello, My application based on Zend Framework and Doctrine includes > 300 files on each request. They are mostly the same files. This is a quite huge overhead. Partially solved by Zend_Cache (and Memcache), but not all the pages may be cached. How to reduce this number? How to speed up? Doctrine has an option to compile the needed ...

Zend Framework 1.10 custom Class inside library folder not found

I'm learning zend framework from zendCast and can't find the problem I'm using: -Zend Server CE -Zend Studio 7.2 -Zend Framework 1.10 (created with zend studio) In my library folder I have a folder App and in that folder a php file Countries.php which corresponds to App_Countries class but when I try to create a new App_Countries ob...

Why doesn't my SSI work ?

I am having problems with passing query params into SSI include from within my zend framework application. I am trying to include a PHP file inside another PHP: <!--#include virtual='/ssi/test.php?x=hello' --> This executes properly, if my hellotest.php (which contains the above line) resides in my document root. If, however I do th...

Integrate a Zend application into Drupal 6 / 7

Hi there, Given a "nacked" Zend application - is it possible to use the Drupal based layout and navigation? What is the best way to integrate a Zend application into Drupal 6 / Drupal 7? For Example: User X visits my Drupal page. He wants to use the Zend-Application called "Feedback". This "Feedback" application should be able to...

ZF - How to cache parts of the layout

Hello, I use Stacic Page Cache (with cache action helper) to cache most of the pages of my App. This is extremly fast, but not always suitable. How do you cache pages with dynamic data? Eg. layout contains info specific to user. One solution I considered is to load additional data via Ajax. But in my case it would be better to cache...

Zend_Uri_Http: Invalid URI supplied when using Google Chart URI?

My application uses Google Charts and using HTTPS. I need to display the Google Charts as "secure" images, otherwise Internet Explorer will complain about displaying insecure content. So, I am trying to download them (then link to the local file) using a Zend_Http_Client request, but I can't seem to do it. The URI should be valid since ...

Zend Framework output ready prepared statement

How to output sql statement right before it's launched? To check all placed data inside prepared statement. ...

YouTube API + PHP + site hosting?

Hi, I have made a site which can pull and upload videos from and to YouTube, http://www.tole-rants.com/ This site was made with the combination of Python, Google App Engine and YouTube API. It is hosted at Google App Engine. I did not code the main structure of this application bcos I don't speak Python so I was made with a Python prog...

problem with jquery autocomplete and zend framework

I am trying to implement this tutorial in my application. I have managed to make it work until the point where I had to modify the view controller and add the link to the .ajax.html file. My code so far: class MenuController extends Zend_Controller_Action { public function init() { $this->_helper->ajaxContext()->a...

Rendering Active Branch of Zend Navigation Without Top Level

I am rendering the top-level elements of a Zend Navigation object in one place like this: echo $this->navigation()->menu()->setMaxDepth(0); How do I render the navigation tree from the second level on down for the active branch? I've tried creating a partial that loops the $this->container object, but I don't know how to determine if...

adding multiple products at once along with assigning attributes to all of them.

I swear this probably might the most complicated magento cart ever. But this is what the client request. We are creating a web application that allows the customer to type in some letters. These letters appear on in a picture as if it was a sign. Each word represents a products. The size of the word changes pricing. Also the custom can...

Pulling Products from a category and their attributes in magento

what type of block would i use and what method would I call. Also what type of array would it return and where would I find the attributes , price and all that good stuff. Thanks ...

Why is ZendX Autocomplete not working??

Hey, I'm setting up my first ZendX_JQuery_Form. In my controller, I've got the following code: $form = new ZendX_JQuery_Form (); $date1 = new ZendX_JQuery_Form_Element_DatePicker ( 'date1', array ('label' => 'Date:' ) ); $form->addElement ( $date1 ); $elem = new ZendX_JQuery_Form_Element_AutoComplete( 'ac1', array('label' => 'Autocom...

Zend Validate - How do you pass context values from a different subform?

I've split up a Form into 3 SubForms and for one of the elements, in the last SubForm, I am creating a Validator that extends Zend_Validator_Abstract. This validator needs to check that a value, on the second SubForm, is not empty. However this value will not be in the $context array for the element in the Third SubForm. What is a sens...