Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Form Validation Callbacks in HMVC in Codeigniter
#1

[eluser]huuray[/eluser]
i got no message in callbacks form validation.
im using HMVC
#2

[eluser]Unknown[/eluser]
In call back form validation u can write customize function in controller. u can also run queries and check it. this function returns boollean type.
#3

[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
#4

[eluser]tahsin352[/eluser]
Hello,

Form Validation has more weakness. see <a href="http://newdailyblog.blogspot.com/2010/07/weakness-of-codeigniter-form-validation.html">here</a> and also see how to solve this problem <a href="http://newdailyblog.blogspot.com/2010/07/documentation-of-my-form-validation-of.html">here</a>.




Theme © iAndrew 2016 - Forum software by © MyBB