I have the items_controller and users_controller

To edit an item, the user must be authenticated
i've put a checkSession() in app_controller

How do you recommend i check the session? show i do it in
users_controller like

function editmyitem($item_id)
{
if (!checkSession()) {
 $this->Item->edit($item_id)
}
}

or in the items_controller like
function edit($id)
{
if (!checkSession()) {
 // do the saving stuffs
}
}
.


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

Reply via email to