Creating Dynamic Log Files In Zend Framework (ZF)

The motivation for wanting to do something like this could be any of the following: You want to have separate logs depending on the context (i.e. application, testing, development, etc) in which the application is being run and you do not want to inherit a context and override some values in another context in the … Continue reading Creating Dynamic Log Files In Zend Framework (ZF)

Advertisements

How to use PHP’s __autoload

Classes used in this posting may refer to classes or interfaces where appropriate. Ever wondered if there could be a more appropriate way to include dependent files into other PHP files other than using multiple include or require language constructs? Well, wonder no more, the __autoload magic function in PHP5 comes to the rescue. In … Continue reading How to use PHP’s __autoload

How To Add A Custom Id Generation Strategy To Doctrine 2.1

UPDATE: The UUID Id Generation feature has now been added to Doctrine now, refer to the documentation Object-Relational Mapping (ORM) has caught up with PHP. In case you have been living under a rock, here's the list of the popular ORM solutions in PHP: Doctrine Propel With the advent of Doctrine 2.0.0 (which at the … Continue reading How To Add A Custom Id Generation Strategy To Doctrine 2.1