Posts Tagged Zend Framework
Using Twig with Zend Framework
Posted by ryan in Content Management, php, Twig, Zend Framework on May 4, 2011
Twig, in short, is a templating system for PHP. But PHP is already a templating system many would argue! Well, I wouldn’t argue against that point. However, with the recent excitement in the air in the PHP Community about Symfony 2, I thought it worth checking out.
Mostly I thought they were silly things that were not really needed unless you had a team of designers to work with, however, during my exploration, a couple of things occurred to me that I had not considered about templating systems before. One being the enforced separation of concerns they provide; you simply cannot do anything from inside them which you shouldn’t be, keeping your presentation very very clean. The second, being that they’re not all as terrible as Smarty.
Why the Zend Framework Actionstack is Evil
Posted by ryan in Zend Framework on March 10, 2009
The action stack seems to be a useful component to some people when starting out with the Zend Framework. This component is a seemingly un-needed part of the framework, as there really is no use-case for it which cannot be simplified with the use of a partial view, which reads data directly from the model, possibly with a view helper alongside to provide some additional logic function, such as deciding on which view partial to use.
This part of the Framework causes the dispatch to loop. This is a costly process, as it involves quite alot. It also adds some further issues to your application design, such as where you should put code. for example if you have some code in your predispatch, and your looping through two actions in that controller, that code will be run twice. This is obviously, not good, and quite un-needed. Further complications can be added when it comes time to add ACL or authentication.
My first Zend Framework proposal is now in incubator!
My previous post was all about my proposal for a database lookup validator for Zend Framework.
Zend Framework component proposal – Zend_Validate_DbMatch
After seeing validators for checking if a value exists in a database table for about the tenth time on IRC, i have decided to put up a proposal for Zend_Validate_DbMatch.
