zend-framework

Zend_Rest_Server + Zend_Rest_Client, variable not read

What i am trying to do is pass $rest->apikey to my Zend_Rest_Server. The empAction creates the array needed by my Zend_Rest_Server. But in getByShortname($id,$apikey), I cannot read the $apikey. They query to check the API key does not return any results. $rest = new Zend_Rest_Client('http://localhsot/api/emp'); $rest->method('getByShor...

Zend From Decorators not working with ZendX_JQuery_Form

I am using two decorator - To get tabular form alignment - To get date picker (ZendX_JQuery_Form_Element_DatePicker) both are working individually, but not at a same time Error: Warning: Exception caught by form: Cannot render jQuery form element without at least one decorator implementing the 'ZendX_JQuery_Form_Decorator_UiWidgetEl...

URL not behaving as expected in Zend Framework

Howdy, When calling the following type of url in a controller's init method I get two different results on two different servers: http://address.com/index/action/?start=2009-04-18&end=2009-04-21 Calling echo $_GET['start']; Gives me 2009-04-18 on one server and nothing at all on the other server. However, and this is t...

PHP reaching memory limit causes function to rerun

So I have a very odd issue. First, I'm using PHP 5.2.6 (as part of MAMP, though this also happens on a LAMP server running 5.2.6 as well), writing a web site using Zend Framework 1.7.2. Second, the software I'm writing does a rather complicated statistical calculation that requires a lot of memory. Usually it runs fine with 128MB set ...

How to configure Zend_Auth to support multiple subdomains?

Hi I have two applications that both run separate instance of Zend Framework MVC application. They are hosted on different subdomains: news.mydomain.com member.mydomain.com I use Zend_Auth on member.mydomain.com to handle authentication. How do I configure ZF on news.mydomain.com to capture the auth info assigned in member.mydomain...

Adding a new view to the a Zend Framework site

We have taken on a site written in Zend framework, we didn't write the site and haven't use the Zend framework before so I'm interested in finding three things. How do I add new views to the site, adding in a new folder to the application/views/scripts directory seems to do nothing Are there any tutorials on how to add affiliate feeds ...

Sending emails to multiple subscribers with the Zend Framework

I think I must be doing something wrong here because my code only sent an email to the last subscriber in the table. When I log the array of subscribers, its obvious that there are more than one that it is trying to send to. I think the problem has to do with trying to batch them together...What is the best way for me to do this? I'm try...

Zend Framework Zend_Form Decorators: <span> Inside Button Element?

I have a button element that I've created like so: $submit = new Zend_Form_Element_Button('submit'); $submit->setLabel('My Button'); $submit->setDecorators(array( 'ViewHelper', array('HtmlTag', array('tag' => 'li')) )); $submit->setAttrib('type', 'submit'); This generates the following HTML: <li> <label for="submit" clas...

Class Diagram or Object Diagram for Zend framework Gdata

I am looking for a Class Diagram for Zend Gdata. Zend_Gdata_Spreadsheets_SpreadsheetEntry object I would like to know if there is a Class Diagram or is it called an Object Diagram, for this is. ...

Zend Framework: Fatal error when trying to use Zend Mail Transport to send multiple emails with attachments

I don't totally understand how all this works, but I'm getting this error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 261858 bytes) in /Users/andrew/Sites/myApp/library/Zend/Mail/Transport/Smtp.php on line 213 I'm running this code locally on my Mac running MAMP. Not sure if that has anything to do w...

How to go about speed testing my PHP script?

I have a script that is running slowly and I was wondering how I could time it and see which fixes improve the speed. Is there some sort of a PHP timer? Update: Thought I should clarify... The script that is running slowly is my mailing list script that sends an email to everyone on the list. So I am looping through an array of subscrib...

What's the best approach to sending email to hundreds of recipients from a Zend Framework application?

I'm trying to implement a mailing list system for my application. I'm currently using Zend_Mail_Transport_Smtp('localhost') as my transport, looping through my list of subscribers, and sending a new Zend_Mail to each one. However, I am noticing that the length of time that it takes for the script to complete increases as the number of su...

Best PHP Framework Training Resource?

Hi, I'm interesting on learnig and dominate any kind of the most popular PHP framework, like CodeIgniter, ZendFramework, CakePHP, Symphony. I 'll choose my own Framework based on the support training behind. And it will be better if it has training lessons delivered in video format. Does anyone know which is the best PHP Framework to s...

best practice to create an Admin section in a ZF based application

In every large application there is an ADMIN section. In such cases, when not using ZF, I usually put all the admin stuff in a separate directory with extra security measures (like adding .htaccess based authentication and/or a second login etc). This also makes it pretty obvious in the file tree what file is what. How can I achieve the...

Zend_Mail reading Mail

The documentation for sending mails with Zend_Mail is great but receiving mails is a pain right now. I currently want to get the plaintext part and the html part of the email. Right now I have writen a long function which goes through the parts and then looks at the headers and look at it whether it is quoated printable or base64 and I h...

Shorten Zend Framework Route Definitions

Hi! How can I shorten the definition of my custom routes in Zend Framework? I currently have this as definition: $route = new Zend_Controller_Router_Route( ":module/:id", array( "controller" => "index", "action" => "index" ), array("id" => "\d+") ); self::$frontController->getRouter()->addRoute('shortcutOne', $route); $route =...

Good Zend Framework example apps to learn from

Hi! Do you know of any open-source Zend Framework applications besides Magento that show in a good OOP-way how to develop big apps with Zend Framework? My problem right now is, that I'm pretty good at PHP and OOP, but I don't have enough knowledge of the Zend Framework and how things should be solved in it. So do you know any good app...

PHP Zend Framework Generator

Hi, I am in the phase of learning Zend Framework for PHP development, I have been doing 'dirty' PHP programming for about 2 years now and I have learnt quite a bit from my mistakes. I have been introduced to Ruby On Rails, it is a great framework and Ruby is quite an interesting language too, but not everyone wants their web sites to be...

Zend_Search_Lucene crashes during indexing

I wanted to create search engine for my webpage, but during indexing on server it crashes with errors : Warning: opendir(/admin/lucene/) [function.opendir]: failed to open dir: Too many open files in /admin/includes/Zend/Search/Lucene/Storage/Directory/Filesystem.php on line 159 Warning: readdir(): supplied argument is not a valid...

How to get modules to work in the Zend Framework

I'm getting the following error when trying to use a modular layout in my Zend Framework application: Undefined index: authentication in C:\PHP\includes\Zend\Controller\Dispatcher\Standard.php on line 385 The following code runs before this error: if (!$this->_acl->isAllowed($role, $resource, $privilege)) { $request->setModuleName('...