No, setAction() will set the $controller->action to 'add' and therefore
render() will render add.ctp

But you can use a parameter:

function admin_add()
{
        return $this->setAction('add', true); 
}

function add($admin = false)
{
        if ($admin)
        {
                $this->render('admin_add');
        }
}


-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar
________________________________________
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Sonic Baker
Enviado el: Domingo, 25 de Marzo de 2007 05:19 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: Admin Routing Techniques

Just wondering if setAction() allows rendering of a different view after the
call?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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