HMVC, Helpers and Undefined property |
I use WireDesignz HMVC and have a KERNEL_Controller (which is actually the MY_Controller with another prefix) with (CodeIgniter 3.0.6)
PHP Code: class KERNEL_Controller extends MX_Controller { Now I have an Helper which does the following PHP Code: function Editor($id) { When I call the Editor in a view, I get Code: Severity: Notice Methods Also when using in KERNEL_Controller PHP Code: public function DoTest() { And in the Editor_helper PHP Code: function Editor($id) { I get Code: Type: Error This works When I do below in the Editor Helper PHP Code: function Editor($id) { It does give me an array with languages! In another project without HMVC, above works (ofcourse without extending MX_controller, but the CI_controller). So in an helper I can call a method or a variable from the KERNEL_Controller. Anyone an idea ?
To set a session data:
PHP Code: $this->session->set_userdata('some_name', 'some_value'); To retrieve session data: PHP Code: $this->session->item What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(03-29-2016, 05:16 PM)InsiteFX Wrote: To set a session data: Thank you for your reply. I have edited my topic start, because my session is not really a session (know, name is confusing). My session can just contain a string or an array, it has nothing to do with real sessions. Also when trying to call a method in the KERNEL_Controller, this fails with Code: Call to undefined method CI::DoTest() |
Welcome Guest, Not a member yet? Register Sign In |