title: Cakephp Special Character Validation
body: <p>I want to to set validation rule in model for user enter only special character only into text field .so please suggest me proper solution.</p>
  
  <p>demo code is</p>
  
  <pre><code>public function addValidations()
      {
          parent::addValidations();
          $this-&gt;validate['Field name'] = array
          (
              'notempty' =&gt; array
              (
                  'rule'    =&gt; array('special char', 'msg',),
                  'allowEmpty' =&gt; false,
                  'message' =&gt; 'Enter Special character only.',
              ),
          );
      }
  </code></pre>