Is there a way to change the config variables inside my model on the
fly.

For example.  If a user visits:

http://www.example.com/videos/rent/toy_story

the page will be returned as normal.  But if a user visits,

http://www.example.com/videos_qa/rent/toy_story or something like it

I want to use the same model, view, and controller but change the
value of $useDbConfig in the model to use a QA database?
Is there a good way to do this.  I want to have both available.  The
only difference in the page that will be seen by the user will be if
the data in the database is different.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to