Notify admin by email each time a field contain selected keyword
-
Copy NotifyKeywordBehavior.php to /Model/Behavior/ folder
-
Add the following code to your model
public $actsAs = array( 'NotifyKeyword' => array( 'emailTo' => '[email protected]', 'keyword' => 'bomb' ) );
-
Change emailTo and keyword to your own needs.