Welcome Guest, Not a member yet? Register   Sign In
Form validation callback in HMVC
#7

[eluser]PhilTem[/eluser]
Didn't want to criticize you, Aken.
As far as I understand the problem, once part (to assign $this to $this->form_validation->CI) comes from the widgetized (hierachical) MVC. If you don't need to run controllers from other modules within your current module, you're fine just using CI_Controller (instead of MX_Controller).

However, since CI 2.0.1 I think the $CI property of CI_Form_validation is private and no longer public. Since you want to change it with the fact stated above you need to change it from private to public so it can be accessed from out of the library.

It is indeed one part that needs to be optimized, but I'd wait for CI 3.0 or the development of the hmvc-lite branch on Codeigniter's GitHub. Maybe it will solve this problem and implement an awesome HMVC logic Wink


Messages In This Thread
Form validation callback in HMVC - by El Forum - 07-19-2012, 05:23 AM
Form validation callback in HMVC - by El Forum - 07-19-2012, 05:46 AM
Form validation callback in HMVC - by El Forum - 07-19-2012, 06:02 AM
Form validation callback in HMVC - by El Forum - 07-19-2012, 02:26 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 02:40 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 02:56 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 03:19 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 03:37 PM
Form validation callback in HMVC - by El Forum - 07-19-2012, 03:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB