title: Cakephp 3.x Custom Validation Rules Creation and Using
body: <p>In cakephp3 Custom Validation Rules:</p>
  
  <p>How to Use a global function validation method.</p>
  
  <pre><code>$validator-&gt;add('title', 'custom', [
      'rule' =&gt; 'validate_title'
  ]);
  </code></pre>
  
  <p>Please any one done before? Pls Provide me the some example program.</p>
  
  <p><a href="http://book.cakephp.org/3.0/en/core-libraries/validation.html#custom-validation-rules" rel="noreferrer">http://book.cakephp.org/3.0/en/core-libraries/validation.html#custom-validation-rules</a></p>
  
  <p>I tried the above but it doesn't work..? </p>