Thursday, December 31, 2009

Re: Sessions table already in the database

Call your Session something else in your CakePHP application - but in
your model, define that the model uses the table "sessions", that
should be the only place that the table "sessions" is used, thus
hopefully not conflict with CakePHP.

See http://book.cakephp.org/view/71/Model-Attributes#useTable-436 for
the table definition.

Enjoy,
John

On Dec 30, 4:44 pm, ecote <ecote....@gmail.com> wrote:
> HI,
>
> Is there a way to change the default session handling?
>
> Reason: we have a database of events (conferences, speakers,
> attendees, etc... and, sadly, " sessions " !!). This database is used
> by some other applications so it would be difficult to change the
> table name. However, once the MVCs (thus the " Session controller ")
> for this table are created, they cause total confusion to cakePHP !!
>
> What is the best workaround ?
>
> Sorry if it's a noob question... but can't find the answer anywhere !
>
> Thanks
> ECote

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: