IтАЩve just posted another one plugin sfConstPlugin:

At the first sight it could look like an analogue of sfSettingsPlugin but it’s not the same. It automatically generates in your cache php file with constants which has a meaning of the references to atomic tables like statuses, types, etc. It reduces the using of such atomic tables and keep management of such values in single sfConst table.

Plugin can be helpfull if you have a big number of reference tables like statuses, types, etc and don’t want to create atomic tables for each table reference.

In fact, I’m using both of these plugins. sfSettingsPlugin is fine for keeping values like NOREPLY_EMAIL or PROJECT_VERSION, etc.
sfConstPlugin is usefull if you have to store for instance user statuses, user types and all the other stuff like that.

Leave a Reply

Your email address will not be published. Required fields are marked *