HMVC Issue |
[eluser]karlaykarlay[/eluser]
Hi All, I have decided to use Modular extension in my CI project. I have downloaded the ME libraries and stored them in ./system/application/libraries. Now I have - Controller.php - Modules.php - MY_Router.php in application/libraries. My Config file has.... Code: /* Detect ssl connectivity */ Then I created Sub Modules under Application. Now my directory looks like... ./system/application /staffprofilemanagement /admin /controllers /crEntityCntrlr.php /views /models /libraries /config Then I try to access using the url.... http://localhost/staffprofilemanagement/...oadCollege I'm getting the error 404 File not found. Please anybody solve this issue.
[eluser]überfuzz[/eluser]
Use the code-button right over the textarea to highlight your code. That makes it easier to follow. Code: /* Detect ssl connectivity */
[eluser]wiredesignz[/eluser]
try Code: ./system/application the URL is malformed also Code: /* http://localhost/staffprofilemanagement/admin/index.php/crEntityCntrlr/loadCollege */
[eluser]karlaykarlay[/eluser]
Soory Not working with the URLs http://localhost/staffprofilemanagement/...oadCollege http://localhost/modules/staffprofileman...oadCollege Any setup I should have?????????? I use PHP5.
[eluser]wiredesignz[/eluser]
Yes you should have a working CodeIgniter setup. Neither of those URLs would work with ordinary CI let alone with HMVC. For you I recommend making your code function as a normal application before you move it into a module. Once you have an understanding of CI application structure then you can use modules more easily.
[eluser]karlaykarlay[/eluser]
Actually I had been running my code with CI without modularising. The same controller (crEntityCntrlr.php) was working fine before. But I wanted to have many modules work together. So putting files of all modules inside controller would make confusion. So I downloaded ME to libraries. I knew I miss some setup but couldn't figure out. If you could help me then it will be fine.
[eluser]karlaykarlay[/eluser]
Can Anyone give me a clear idea about the Directory structure of CI being modularized, The setup and Calling info...........
[eluser]karlaykarlay[/eluser]
Some how I tried to fix the problem and got struc with some other error. "The configuration file config.php does not exist." Please Help......... Actually I changed the url to http://localhost/index.php/staffprofilem...oadCollege and got the above error.
[eluser]karlaykarlay[/eluser]
As per above directory structure I Used... system/ system/application/ system/application/modules/ system/application/modules/staffPMS/ system/application/modules/staffPMS/admin/ system/application/modules/staffPMS/admin/controllers/ system/application/modules/staffPMS/admin/controllers/crEntityCntrlr.php But I'm getting the following error for URL http://localhost/index.php/staffPMS/admi...oadCollege An Error Was Encountered Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid. Needed Help......... |
Welcome Guest, Not a member yet? Register Sign In |