Posts Tagged “zend framework”

Zend View Helper in database stored content

by Patrick on February 13, 2011

One of my co-workers currently writes his own website based on the Zend Framework. He wanted to use view helpers inside of the content, just like you do in view scripts. But the thing with content nowadays is that it is stored inside a database. He came up with a pretty simple, yet somewhat brilliant solution. (…)

Zend_Acl autoloader?

by Patrick on July 30, 2009

Again about Zend Framework. When I read the documentation of  Zend_Acl for the first time, I thought “My god, you want me to load the whole ACL structure at each request? You can’t be serious.” Of course not. Again asking Google for help I quickly found a dynamic ACL loader in the framework’s Wiki. That’s (…)

Zend_Layout: Layouts per module

by Patrick on July 24, 2009

Today I was confronted with the problem to assign a single layout.phtml to each module of a Zend Application. At first I thought it’d be done easily with an application.ini line like this one: admin.resources.layout.layoutPath = path/to/layout (whereas “admin” is the module name). But as often, pressing F5 brought disillusion, it doesn’t work this way. (…)