Created
December 21, 2013 14:08
-
-
Save marcincodes/8069746 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Theard | |
public $validate = array( | |
'name' => array( | |
'notEmpty' => array( | |
'rule' => array('notEmpty'), | |
//'message' => 'Your custom message here', | |
//'allowEmpty' => false, | |
//'required' => false, | |
//'last' => false, // Stop validation after this rule | |
//'on' => 'create', // Limit validation to 'create' or 'update' operations | |
), | |
), | |
'Post0Body' => array( | |
'notEmpty' => array( | |
'rule' => array('notEmpty'), | |
//'message' => 'Your custom message here', | |
//'allowEmpty' => false, | |
//'required' => false, | |
//'last' => false, // Stop validation after this rule | |
//'on' => 'create', // Limit validation to 'create' or 'update' operations | |
), | |
), | |
); | |
//view | |
echo $this->Tinymce->input('Post.0.body', $options = array('label' => false), $tinyoptions = array(), $preset = 'admin'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment