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