Tratamento de erros + Custom 404 e 500 páginas em PIMF

Todas as opções de configuração relacionadas a erros e registro estão no arquivo config.php . /*|————————————————————————| Settings for the error handling behavior|————————————————————————*/’error’ => array( ‘ignore_levels’ => array(E_USER_DEPRECATED), ‘debug_info’ => true, …

Continuar lendo

Crie uma fábrica de regras com Pimf_Util_Validator

$attributes = array( ‘fname’ => ‘conan’, ‘age’ => 33, ‘birth’ => ’12-12-2040′, ‘monitor’ => ‘sonyT2000’,);$rules = array( ‘fname’ => ‘alpha|length[>,0]|lengthBetween[1,9]’, ‘age’ => ‘digit|value[>,18]|value[=,33]’, ‘birth’ => ‘length[>,0]|date[mm-dd-yyyy]’, ‘monitor’ => ‘alphaNumeric’);$validator = …

Continuar lendo