title: Validation in cakephp FOR INTEGER
body: <p>i actually needed integer validation for phone number and used this code but it does'nt work </p>
  
  <pre><code>'phone'=&gt;$this-&gt;validator()-&gt;add(’phone’, array(
  ’required’ =&gt; array(
  ’rule’ =&gt; ’notEmpty’,
  ’required’ =&gt; ’create’
  ),
  ’size’ =&gt; array(
  ’rule’ =&gt; array(’between’, 8,20),
  ’message’ =&gt; ’phone should be at least 8 chars long’
  )
  ));
  </code></pre>