if (!empty($this->data))
{
$this->data['Category']['cat'] = str_replace(" ", "_", $this->data['Category']['cat']);
$this->save($this->data);
}
ereg_replace is not a method of a class it is a php function and for what your doing it is not very good function to use anyway
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
- Problem of using ereg_replace before saving da... andz.christian
- Re: Problem of using ereg_replace before ... Larry E. Masters aka PhpNut
- Re: Problem of using ereg_replace before ... Andrew Assarattanakul
