Archive for the “php” category
At connectiv! we always have a load of JavaScript files to be loaded for some interactive stuff. Sometimes it’s so many that the amount of HTTP requests slows down the pageload. With the help of a small PHP script we reduced the number of HTTP requests to one. What the script does is it reads (…)
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. (…)
Great article about using Java-like interfaces in PHP for better sorting (sorry english folks, this one’s in german): http://blog.ebene7.com/2010/09/06/besser-sortieren-mit-php-dank-java-interfaces/
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 (…)
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. (…)
My favourite in terms of templates develops further! Take part in the development of Smarty 3 at the Smarty Developers Group or chat a little about this awesome template engine here in the Smarty Discussion Group.