nate...
I can't... as the variable that goes in the html title tag is
$title_for_layout

On Aug 30, 12:33 pm, nate <[EMAIL PROTECTED]> wrote:
> It is a reserved name.  Can you guess what it's reserved for? ;-)
>
> On Aug 30, 10:44 am, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > I was trying to put title var in a view, but i always got an error
> > undefined var? is this a reseverd name for something?
>
> >         public function admin_saveTitle()
> >         {
> >                 // Use ajax layout
> >                 $this->layout = "ajax";
>
> >                 // Check if the form has been submitted
> >                 if (!empty($this->data)) {
> >                         // Check if article has been saved
> >                         if ($this->Article->save($this->data)) {
>
> >                                 $this->set('data', 
> > $this->data['Article']['title']);
> >                                 //$this->set('title', 
> > $this->data['Article']['title']);
> >                         }
> >                 }
> >         }
>
> > When i set the title instead of data it does not work anymore ?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to