Nov 17
Digg
Stumbleupon
Technorati
Delicious

Dynamic access to classes in Symfony

It’s about something about how to simply your life. E.g. sometimes you may want to store table names in your DB. The reasons why you may want it are different. E.g. I want to generate constants for reference tables and in order to do that I use the following approach:
$tables = sfDatabaseTablePeer::doSelect(new Criteria());
if ($tables) foreach($tables [...]

Author: admin