Please Help with Form Validation Hmvc |
I am Using HMVC with Codeigniter 3.
I am trying to make custom validation callback function and its not working with HMVC. I get solution from searching in google like. PHP Code: class MY_Form_validation extends CI_Form_validation { But its not working for me. Help me
I presume you are using WireDesigz HMVC. Assuming this, callbacks are an issue with it but easily soluble.
In the docs for HMVC it says that you need to : Quote:When using form validation with MX you will need to extend the CI_Form_validation class as shown below, You can read about it here in full: https://bitbucket.org/wiredesignz/codeig...sions-hmvc There are also lots of good examples to solve this: http://stackoverflow.com/questions/27923...ot-working I hope this helps, Best wishes, Paul.
Make sure that this code below is in application/libraries/MY_Form_validation.php
PHP Code: <?php Second when using callbacks with HMVC must include $this variable as shown below. PHP Code: public function index() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |