Well its assumed that if you have the variable to set in the view, you could just reference that. View::set() has no magical way of adding to the local execution scope. Remember, cake is constrained by what PHP can do :) If for some reason you can't use a local variable, try looking in $this->viewVars['title_for_layout']
-Mark On May 6, 9:54 pm, Sergei <yatse...@gmail.com> wrote: > Actually this->set(title_for_layout) in the *view* sets this variable > ONLY for layout. It doesn't available in the view. Maybe this is a bug > or something? > > On Apr 29, 3:13 pm, John Andersen <j.andersen...@gmail.com> wrote: > > > It is written in the migration section, that you should use the views > > method $this->set instead. > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en