Loading module in another method doesn't work - hmvc wiredesignz |
I have setup Wiredesignz HMVC in a fresh CI 3 installation.
I have a controller in Modules/Commonweb/Commonweb/showprofile I can access showprofile method via mydomain.name/commonweb/showprofile fine because (module directory name and controller names are the same) Within that Commonweb controller I have another method called myprofile which I access using mydomain.name/commonweb/myprofile Currently both of these method load separate view files which have almost identical code So I thought I make use of HMVC features by calling the myprofile method in showprofile method using the format below. PHP Code: /** module and controller names are different, you must include the method name also, including 'index' **/ PHP Code: Class Commonweb extends MX_Controller But I just get a blank page. I tried turning on the debug messages but nothing much there. What am I doing wrong?
You load the module then call the method in it:
PHP Code: Just an example. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |