If you must use ereg_replace though I don't recommend for this
situation you need to define that the variable is a string by using
strval function.
if (!empty($this->data))
{
$this->ereg_replace(" ", "_",
strval($this->data['Category']['cat'])));
$this->save($this->data));
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---