$this->pageTitle = "my title";
    $this->layout = 'pageDefault';

Works fine and $title_for_layout is set. The same if I miss out the
second line as it then defaults to ... er.. default.

If, however, I say $this->layout = ''; then the page title is not
visible in the view. Okay, I'll just do:
    $this->set('title', "my title");

and in the view:
    <title><?php echo $title; ?></title>

Oh no! The variable $title is still unset. I can see where this is
coming from in the API. If I use a varName other than $title, it works
okay.

My feeling is that this is a bug, as if a viewVar is set in the
controller, its accessibility in the view should not depend on its
name.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to