Till posted this little snippet;
It’s so useful I just had to share it
find . \( –name “*.php” –o –name “*.phtml” \) –exec php –l {} \;
Just go to your project directory and fire it off, it will help you find those pesky unmatched {}
Till posted this little snippet;
It’s so useful I just had to share it
find . \( –name “*.php” –o –name “*.phtml” \) –exec php –l {} \;
Just go to your project directory and fire it off, it will help you find those pesky unmatched {}
Bill Karwin posts a useful little snippet that will list and search each class for function names that match except for the underscore prefix, private / protected functions.
< ?php
/**
* Find methods that differ only by the underscore prefix.
* by Bill Karwin August 2010
*
* I release this code […]
What I do is I have my controllers fetch all their dependencies from the bootstrap and/or front controller. The most common example is to pull the db resource from the bootstrap:
// in controller
$db = $this->getInvokeArg(‘bootstrap’)->getResource(‘db’);
But I also take it a step further. For example, if I’m using data mappers, I have the action controller check […]
Yesterday, the Zend Framework team tagged the first development milestone of Zend Framework 2.0 (2.0.0dev1). It is immediately downloadable from the Zend Framework servers:
* Zip package:
http://framework.zend.com/releases/ZendFramework-2.0.0dev1/ZendFramework-2.0.0dev1.zip
* tar.gz package:
http://framework.zend.com/releases/ZendFramework-2.0.0dev1/ZendFramework-2.0.0dev1.tar.gz
NOTE! This release is not considered of production quality, and is released solely to provide a development snapshot for purposes of testing and research. […]
Jon Lebensold posts; In the last video, I discussed ZendX_JQuery integration. Now we’re going to take it a step further by developing our own jQuery autocomplete control, using a country list, PHP 5.3 and anonymous functions.
Grab a copy of the project or browse the repository.
via Zendcasts.
Jon Lebensold posts; I’ve received a lot of feedback about jQuery integration in the Zend Framework. This little video will show you how you can quickly integrate jQuery and jQuery UI into your Zend Framework project.
Grab a copy of the project or browse the repository.
via Zendcasts.
The good old Zend Framework manual pages do suffer from being somewhat lengthy. I’ve thought they could do with an index to make navigation easier on those oh-so-long pages. So I wrote a quick JavaScript bookmarklet to do just that.
via simon r jones.