Skip to content

Instantly share code, notes, and snippets.

@marcincodes
Created December 21, 2013 14:08
Show Gist options
  • Save marcincodes/8069746 to your computer and use it in GitHub Desktop.
Save marcincodes/8069746 to your computer and use it in GitHub Desktop.
//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