Maybe... :) This model is a plugin model though, so it relies on the
cookie set by the main application's controller to find out which
database configuration to connect to.

Thanks all for the replies, the code is working now.

On Oct 15, 10:08 am, "Dr. Tarique Sani" <tariques...@gmail.com> wrote:
> On Fri, Oct 15, 2010 at 9:56 PM, Raisen <weys...@gmail.com> wrote:
> > But I need to access the cookie in the model because that model uses a
> > dbconfig that relies in what the cookie is set to.
>
> Like said above pass the cookie from the controller to the model, in fact
> just pass the needed value from within the cookie to the model.
>
> If your model is dependent on a cookie then it is time to refactor :-)
>
> Cheers
> Tarique
>
> --
> =============================================================
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =============================================================

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to