zend-framework

Imap IDLE in Zend Framework

I am searching for the IMAP IDLE function in the Zend Framework. I would either like to know whether it is integrated or if it could be done. I have read that the IlohaMail library seems to have implemented the function - at least in a modified version used in roundcube. ...

Where clause with Zend_Db not working as expected

I am getting an error: Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%'Chinese'%) ORDER BYtext_idDESC LIMIT 10' at line 2 caused by this line of code $select = $this->_db->select('')...

The best book for PHP Zend Framework

What is in your opinion the best book to learn Zend Framework in depth? ...

Zend Framework bassed projects

Where can i see ZF-bssed project with nice architecture DataMapper,Services, etc ...

Sensing an Action View Helper call in a Zend Controller unit test

I'd like to implement widget-ized Zend controllers in a test-driven way. By widget-ized I mean, for instance, a list controller that outputs elements, calling for each of them $this->action('element', …) view helper in its view script (list.phtml). Thus, the rendering of each element in the list is handled by a dedicated “element” contro...

How do call the controller and action from javascript in Zend framework

How do call the Controller/action in Zend framework from Javascript such as if(a==b){ } else{ document.myform.action="/fz/controllername/actionname" } My controllers are located in the src/controllers/ ...

ZendX/Jquery ui - open dialog box on click

Hi, When a user clicks on the button delete, I want a dialog box to appear, to confirm the delete. I can get the dialog box to appear on page load, but am running into problems getting it to appear on a button click instead: <?php echo $this->dialogContainer( 'dialog', 'Are you sure you want to delete this postcode?', array( 'autoO...

Cannot refresh row as parent is missing. Zend Framework

i am getting the error "Cannot refresh row as parent is missing" when I try to save. Here is my code abstract class Webapp_Model_Resource_Db_Table_Abstract extends Zend_Db_Table_Abstract { /** * Save a row to the database * * * @param array $info The data to insert/update * @param Zend_DB_Table_R...

Any tool to parse a ZF project for translate() method ?

Hi, I used gettext as adapter for Zend_Translate in the past and poedit has such utility that parses a project for translate() methods. But I'm not using gettext anymore (it's a requirement) and I use CSV instead. I'd like to know if there are any utilities to parse my project and help me to gather all my translated string. I know so...

Php form in Zend Framework

How can i use a simple php form in zend framework. I am new to this framework,so please explain in detail. Thanks in advance ...

Zend Framework & memory_get_peak_usage

Hello. How many kbytes use your site on Zend Framework? and what size is normal...? // using memory_get_peak_usage(true) / 1024; ...

How can I run a doctrine 2 migration commandline without interaction?

How can I run a doctrine 2 migration command without interaction? Currently I have following command which runs on the setup of my Unit Tests. But It always prompt for a Yes/No user input, even when I use the --no-interaction option. $input = new Symfony\Components\Console\Input\ArrayInput( array( 'migrations:migrat...

Sign on several sites

i have 2 sites (example.com, ex2.com). Fisical is a 1 site with 1 db. When user sing in ex2.com, he was sing in example.com too. How do this? P.S. Can do this with ZF? I found a very interesting article on this topic. The author gives some ideas how to implement Multidomain authentication. http://codeutopia.net/blog/2008/09/25/sharing-...

Would you recommend learning Zend framework from a freelance perspective?

I'd like to know what you think. Is it worth it to become proficient with Zend or adapt it as my common solution? Do you find it widely supported enough to build applications with which you can mass distribute? Any input would be great. I am not looking at this from a career perspective, more a business perspective as a freelancer, or...

Display Zend_Form form errors in ViewScript

I'm trying to display all form errors before the form using a ViewScript. Here is the code that I'm currently trying to use within my ViewScript: <div class="errors"> <?php echo $this->formErrors($this->element->getMessages()); ?> </div> This call gives me an error message: Warning: htmlspecialchars() expects parameter 1 to be str...

Get the route informations from a Zend_Controller_Request

I am trying to get the routing information from a random URL (part of my application). I tried to instantiate a Zend_Controller_Request_Http with an URL but it didn't fill in the controller, module, action fields automatically. I suppose it should somehow be linked to the Route info but cannot figure how to connect this. Any leads? ...

Problem when sending mail with Zend Mail?

Hello, I'm trying to send an e-mail with ZendMail ( this simple script sums it up ) <?php require_once 'Zend/Mail.php'; $mail = new Zend_Mail(); $mail->setBodyText('My Nice Test Text'); $mail->setBodyHtml('My Nice Test Text'); $mail->setFrom('[email protected]', 'Mr Example'); $mail->addTo('[email protected]', 'Mr Test'); $mail->setSub...

Zend Lucene MoreLikeThis

I'm using Zend_Search_Lucene for my search engine. Sadly it is missing an implementation of the MorelikeThis methods which can find similar documents in the index. Has anybody come across a decent Zend port of this function? I found a drupal module but have no idea if this can be used with Zend without some serious hacking. ...

Tiered? structure of complex Zend Framework models/objects

What is the best way to store complex models in ZF? In the example below, should each attribute be a separate model entirely, or should the item be a multi dimensional array (as shown below)? object(Application_Model_Item)#79 (4) { ["_id":protected] => int(45) ["_name":protected] => string(5) "Bolts" ["_description":protected] =>...

How to calculate distance between latitude and longitude with a radius in Zend Lucene ?

Hi, I don't know if it's possible, but I would like to make a search on latitude, longitude, and a radius. I mean i'd like to get the distance between my reference latitude and longitude, compare it with all my stored latitude and longitude and if it's lesser than the radius, take it. Is it possible to do this whith Lucene (only if it's...