On Nov 2, 9:30 am, Cristian Vrabie <[EMAIL PROTECTED]> wrote:
> hi everybody,
> i'm new to phpcake organization model and i'm having some problems
> integrating some classes. maybe you can give me a hand.
>
> i need a "visitor" class that will be responsible with tracking a site
> 'visitor' (not a user), keep a track and use his settings (like language
> and skin preferences) via cookies and similar stuff. the thing with this
> is: i don't know if this should be a controller or a component. i would
> say it's a controller because it hase it's own models (like log tables,
> preferences table, etc), but then, it has no view and must be called
> (initialized) on every page before everything else, and be accesible
> from any other controller.
>
> what should i do? i saw a page_controller somewhere and i think i can
> use that but i'm not sure how?
>
> what do you sugest. i'm sure this is a preaty common practice. what do
> you use?
>
> thanks,
> Cristian

As Jonathan Snook says in his article, you should play with some
implementation in the master app_controller (checkings, logs,
preferences, etc). In this way, you have the certain that this piece
of code is going to be in every controller you call.

Martin Bavio


--~--~---------~--~----~------------~-------~--~----~
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