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