thx alot, got it!
On Feb 14, 1:46 am, the_woodsman <[EMAIL PROTECTED]> wrote:
> 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)
yes, there is actually a pretty easy way to do this, and the location of the
code depends on where you want it applied.
In my own site, I have 2 separate layouts, one for logged in users, one for
non-logged in users. in my app_controller.php file, I have the following
code set up in the beforeFilt
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 ther
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,