How to implement CRUD in module (HMVC) ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to implement CRUD in module (HMVC) ? (/showthread.php?tid=30784) |
How to implement CRUD in module (HMVC) ? - El Forum - 05-25-2010 [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? How to implement CRUD in module (HMVC) ? - El Forum - 05-26-2010 [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/ How to implement CRUD in module (HMVC) ? - El Forum - 05-26-2010 [eluser]web_developer[/eluser] Thanks a lot, I was going wrong direction. But now I got it. Once again Thank you very much. How to implement CRUD in module (HMVC) ? - El Forum - 05-26-2010 [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 |