http://api.cakephp.org/1.2/class_model.html#d45dbbc6a13d9921731abf738623bb01

On Oct 22, 2:24 pm, carSign <[EMAIL PROTECTED]> wrote:
> 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_storyor 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 cake-php@googlegroups.com
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