title: cakePHP : Warning (2): htmlspecialchars() expects parameter 4 to be boolean
body: <p>I want to display the date as DMY: example 07-07-1975</p>
  
  <p>But with this code:</p>
  
  <pre><code>&lt;?php echo h($player['Player']['player_birthDate'], array('dateFormat'=&gt;'DMY')); ?&gt;
  </code></pre>
  
  <p>I get the error message:</p>
  
  <pre><code>Warning (2): htmlspecialchars() expects parameter 4 to be boolean, array given [CORE\Cake\basics.php, line 198]
  
  htmlspecialchars - [internal], line ??
  h - CORE\Cake\basics.php, line 198
  include - APP\View\Players\index.ctp, line 34
  View::_evaluate() - CORE\Cake\View\View.php, line 935
  View::_render() - CORE\Cake\View\View.php, line 897
  View::render() - CORE\Cake\View\View.php, line 466
  Controller::render() - CORE\Cake\Controller\Controller.php, line 952
  Dispatcher::_invoke() - CORE\Cake\Routing\Dispatcher.php, line 192
  Dispatcher::dispatch() - CORE\Cake\Routing\Dispatcher.php, line 160
  require - APP\webroot\index.php, line 108
  [main] - ROOT\index.php, line 41
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>'player_birthDate' =&gt; array(
     'date' =&gt; array(
         'rule' =&gt; array('date'),
     ),
  ),
  </code></pre>