HMVC -> Redecalre error coming application\third_party\MX\Base.php on line 55 |
[eluser]web_developer[/eluser]
Hello, Here is my CI 2.0.2 Structure.. I am using latest HMVC modular (5.3) application - controllers - demo.php - models - views - modules - controllers - login.php - models - login_model.php - views - viewLogin.php here is my main URL http://www.xyz.com/demo /demo <-- the main controller demo.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); login/login.php <--- Module controller Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); when I use MX_Controller then redeclare error is coming.. So I have change with "CI_Controller" then it's working properly.. Even it's loading the view.. But now load model is not working.. i m not getting what is wrong over here.. can any one have an idea? Notice is coming that "login" is not an object.
[eluser]InsiteFX[/eluser]
I create a MY_Controller that extends MX_Controller then extend my Controllers from the MY_Controller Code: /** Also there is a newer version of HMVC modular (5.4) InsiteFX
[eluser]web_developer[/eluser]
THanks for the reply.. I have notice one more thing.. For first time everything is loading properly (Model, Cotroller & Veiw) but when I submitting the button then after it is loosing the model object from module controller $this->login->add <--- Notice is coming that login is not an object.
[eluser]InsiteFX[/eluser]
Did you add this to application/config/config.php at the very bottom? Code: $config['modules_locations'] = array( Also this is wrong, should be this! Code: public function index(){echo modules::run('login/main');} // Calling the modules.. InsiteFX
[eluser]web_developer[/eluser]
yes I have added that too.. but still submit is not working.. |
Welcome Guest, Not a member yet? Register Sign In |