Hello all,

In the Jobeet project tutorial in the Symfony documentation, I
frequently saw the use of sfConfig::get( 'app_max_jobs_per_page' ) or
some settings like these. But everytime these were used in the view
layer. I was wondering if they can be used in the model layer as
well.

Like in one of my model's overridden methods.....I have a query like
this....

$q = Doctrine_Query() :: create()
  -> from ( 'table1 t1' )
  -> where ( 'user_type = ?', 'student' );

Now the string used here 'student' is a primary key in the database,
but it could change later. In that case I will have to change the
values everywhere in my model. So I was wondering if it could be
replaced by some global setting like $student_user_string defined in
some setting file?

Any suggestions !!!!!!!!!

Thanks and regards
Vikram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to