How to implement CRUD in module (HMVC) ? |
[eluser]web_developer[/eluser]
Hello, I want to develop one CMS for my client, and for that I have to prepare lots of modules with CRUD. I have download the HMVC file and set it in library. But now how can I used that for add/edit/delete for particular module? let's take one example Code: // MAIN PARENT CLASS // So now how to set link for Add/edit/delete module? I means, I would like to load my module from any parent controller, then it should work. I am not getting the proper way.. How to set link in view for Add/Edit/Delete and How can I access module in any parent class? I hope you understand what I mean to say? Is there any tutorial or video for Module, which are using CRUD ? Can anyone help me in this?
[eluser]vitoco[/eluser]
first some corrections in the code : [quote author="web_developer" date="1274867793"]Hello, Code: ... So now how to set link for Add/edit/delete module? I means, I would like to load my module from any parent controller, then it should work. I am not getting the proper way.. How to set link in view for Add/Edit/Delete and How can I access module in any parent class? I hope you understand what I mean to say? Is there any tutorial or video for Module, which are using CRUD ? Can anyone help me in this?[/quote] you don't have to "load" the module from a parent controller....just set the url to go the module controller... like this Code: base_url().'navigation/add_navigation/'; this may help to load partials... http://codeigniter.com/wiki/Modular_Extensions_-_FAQ/
[eluser]web_developer[/eluser]
Thanks a lot, I was going wrong direction. But now I got it. Once again Thank you very much.
[eluser]vitoco[/eluser]
i'm glad it helps, also...try to read all the documentation on the wiki about HMVC, cause there's a lot of tools that make the life easier. Saludos |
Welcome Guest, Not a member yet? Register Sign In |