[eluser]flaky[/eluser]
HMVC has an issue with form validation, to overcome that do this
create this file and put it in the application/libraries folder
Code:
< ?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Form_validation extends CI_Form_validation
{
function run($module = '', $group = '') {
(is_object($module)) AND $this->CI =& $module;
return parent::run($group);
}
}
/* End of file MY_Form_validation.php */
/* Location: ./application/libraries/MY_Form_validation.php */
whenever you are using form validation, when validation put $this into the $this->form_validation->run()
example
Code:
if($this->form_validation->run($this)) {
//your code down there