Hmmm, tricky...
I have never used the built in Auth component before, but to the best
of my knowledge I don't think anything's wrong in your before filter
code.
but then I would do this in the view function:
if(User logged in Condition){
//your view code
else{
$this->render('/deny_page', null, false);
}
then you would need deny_page.ctp in your views,
you could also use an elements if you're more at ease with that.
Then again, there might be a more 'clean' way to do this using the
Auth component, but this works perfectly for me.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---