Apr 26
Digg
Stumbleupon
Technorati
Delicious

sfConstPlugin

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

http://trac.symfony-project.com/trac/wiki/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.


Author: symfonian

No Comments

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a comment