[Closed] CI Form Validation Still Not Working |
[eluser]riwakawd[/eluser]
Hello I have got the form validation way user guide says but not Displaying Errors, for form. I also use HMVC so not sure if that is effecting it. Code: public function index() View file Code: <form method="post" role="form" acti echo base_url('step_3/index');?>">
[eluser]Patroklo[/eluser]
Yes, it has to do. HMVC has a "problem" with codeigniter form validation: http://ellislab.com/forums/viewthread/161740/#776983 There it's explained how to deal with it.
[eluser]riwakawd[/eluser]
[quote author="Patroklo" date="1400218692"]Yes, it has to do. HMVC has a "problem" with codeigniter form validation: http://ellislab.com/forums/viewthread/161740/#776983 There it's explained how to deal with it.[/quote] Still nothing controller is MX_Controller Same issue when running CI_Controller Just not validating
[eluser]Patroklo[/eluser]
Checking your code, first you have Code: $this->CI = &get;_instance(); Code: $this->CI = &get;_instance(); Then, why do you have a get_instance in a controller? You don't need it. Code: $this->load->helper('file'); That should do it instead of the Code: $this->CI = &get;_instance(); $this->CI->load->helper('file'); EDIT: all right, the get_instance it's a forum's problem, because i'm trying to get rid of the ; and I also can't. I'm checking the rest of the code...
[eluser]Patroklo[/eluser]
Checked your code and it works just fine in my web. the view: http://pastie.org/9180921 the controller: http://pastie.org/9180925 and the proof: http://imgur.com/Ui1FrUg Try this code and let us know if it works for you.
[eluser]riwakawd[/eluser]
[quote author="Patroklo" date="1400225492"]Checked your code and it works just fine in my web. the view: http://pastie.org/9180921 the controller: http://pastie.org/9180925 and the proof: http://imgur.com/Ui1FrUg Try this code and let us know if it works for you. [/quote] Seems strange will not work I will have to re think it and look at it. Might be what cause problem is codeigniter-bcrypt. Or MX I have add ($this) == FASLE. I will think about it. I will have to investigate.
[eluser]riwakawd[/eluser]
[quote author="Patroklo" date="1400229609"]Have you tried the code I posted you? It worked?[/quote] Yes did not work. I truly think must be something down my end. Is there away to get this $prototype that you fixed work as a model rather than load direct on controller. Because I know when loading via model I can get errors working.
[eluser]Patroklo[/eluser]
Yes I can: Controller: http://pastebin.com/3ycefNCY Model: http://pastebin.com/UumQcBP0 The view doesn't change. Just to be sure... I have only tried the form with all fields empty.
[eluser]riwakawd[/eluser]
[quote author="Patroklo" date="1400232301"]Yes I can: Controller: http://pastebin.com/3ycefNCY Model: http://pastebin.com/UumQcBP0 The view doesn't change. Just to be sure... I have only tried the form with all fields empty.[/quote] Thanks will have ago. |
Welcome Guest, Not a member yet? Register Sign In |