Archive for the ‘web’ Category

wordpress rewrite rules for lighttpd

Wednesday, April 6th, 2011

I recently tried to tidy up my hand crafted rewrite rules for wordpress/lighttpd and after a very quick google I was taken to an article titled “URL rewriting for wordpress and lighttpd“. Clearly, I thought my search was over. However, I couldn’t help but notice that one of my previous ramblings PHP was resulting in a blank page being rendered.

(more…)

Combining Zend_Db_Select and Propel 1.3

Sunday, April 18th, 2010

Propel 1.3 has served me very well over the past few years and I’m absolutely confident that recent projects would not have been delivered so quickly without it. However, when stuff gets a little crazy, you need to hydrate your objects using hand-crafted SQL. Building up a SQL in a variable and passing it between functions can be a nightmare to get right. Since I was already using Zend Framework, I decided to try and get Propel objects back from a Zend_Db_Select generated query. The Relational API in the upcoming 1.5 release of Propel would make this possible without the need for hacks and workarounds…

(more…)