> use
> if(user_has_no_rights())
> {
>    header('HTTP/1.1 401 Unauthorized');// <- robots may need this
>
>    // The following will return the rendered action of that controller
> to you.
>    echo $this->requestAction('anothercontroller/action',
> array('return'));
>
>    $this->autoRender = false;  // Needed to avoid rendering of current
> action.
>    $this->layout = '';
>    die();
>
> }
>

Thank you very much Ketan !
Now what if I want my requestAction to be rendered within its own
layout ? (you now understand why the subject of this post contains
"redirect")



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