[eluser]Jason Stanley[/eluser]
Update.
Moving the library above the model fixes the error.
Code:
<?php
class Categories extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('categories_model');
$this->load->helper('form');
}
However error messages are not displaying.
Code:
function form_error($field = '', $prefix = '', $suffix = '')
{
if (FALSE === ($OBJ =& _get_validation_object()))
{ echo 2;
return '';
}
return $OBJ->error($field, $prefix, $suffix);
}
Always prints 2. But... if I print_r the validation object after validation...
Quote:[_error_array:protected] => Array
(
[title] => The Title field is required.
)
That to me looks like there is an error... i'm a bit lost.