* @access public
* @return bool
*/
- function validate($nombre, $valor, $formato = '')
+ function validate($valor, $nombre, $formato = '')
{
- $tmp = $valor['F'].'-'.$valor['d'].'-'.$valor['Y'];
- return Validate::date($tmp, array('format' => '%Y-%m-%d'));
+ return Validate::date($valor['Y'].'-'.$valor['d'].'-'.$valor['F'], array('format' => '%Y-%m-%d'));
} // end func validate
}
?>