Sounds like you're looking for the controller's render() method.
It's always good to check the manual (http://manual.cakephp.org/
chapter/controllers) or the API (http://api.cakephp.org/
class_controller.html) first :)
On Feb 13, 10:53 pm, subnet <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> is there any way to set an alternate view(-template) inside a
> controller?
>
> f.e.
>
> class UsersController extends AppController
> {
> function login() {
> if (...)
> // default: render with view login.thtml
> else
> // render with a different view, f.e. login_error.thtml
>
> }
>
> thx,
> michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---