Setting up my design in CodeIgniter |
[eluser]Patrick Reck[/eluser]
Hello! I am just starting with CodeIgniter, but I can't quite figure how to sort out my views. I've made a sample layout explaining my problem, and is attached to this post. I have a <b>menu</b> box, a <b>user-system</b> box and a <b>content</b> box. In procedural PHP I would have a page called <i>index.php</i> with a parameter from <i>GET</i>, including the <b>content</b>. The <b>user-system</b> would just be included in the <i>index.php</i> file inside the box, and so would the <b>menu</b>. How can I do this in a proper way using MVC and CodeIgniter?
[eluser]Otemu[/eluser]
I would suggest you follow a few tutorials as your probably need to learn a few things. Couple of great tutorials can be found here http://net.tutsplus.com/articles/web-rou...ll-levels/
[eluser]Patrick Reck[/eluser]
[quote author="Otemu" date="1357733449"]I would suggest you follow a few tutorials as your probably need to learn a few things. Couple of great tutorials can be found here http://net.tutsplus.com/articles/web-rou...ll-levels/[/quote] I've read the tutorials at EllisLab and the CodeIgniter from Scratch on nettutsplus. Non of these, unfortunately, covers this part. I looked through the link you post, and I cannot find anything explaining it either.
[eluser]Otemu[/eluser]
Check this out http://williamsconcepts.com/ci/codeignit...rence.html
[eluser]Otemu[/eluser]
Better yet follow this great tutorial as it shows you how to create master template page which is more or less what your looking for https://www.ibm.com/developerworks/web/l...deigniter/ Also eventually your probably need to look at https://bitbucket.org/wiredesignz/codeig...sions-hmvc Modular Extensions makes the CodeIgniter PHP framework modular. Modules are groups of independent components, typically model, controller and view, arranged in an application modules sub-directory that can be dropped into other CodeIgniter applications. Hope that helps if you have any more issues with the layout let me know and I send you some example code.
[eluser]Patrick Reck[/eluser]
[quote author="Otemu" date="1357739797"]Better yet follow this great tutorial as it shows you how to create master template page which is more or less what your looking for https://www.ibm.com/developerworks/web/l...deigniter/ Also eventually your probably need to look at https://bitbucket.org/wiredesignz/codeig...sions-hmvc Modular Extensions makes the CodeIgniter PHP framework modular. Modules are groups of independent components, typically model, controller and view, arranged in an application modules sub-directory that can be dropped into other CodeIgniter applications. Hope that helps if you have any more issues with the layout let me know and I send you some example code.[/quote] HMVC was exactly what I needed. Thank you. If you have any sample code made using HMVC I'll gladly take it |
Welcome Guest, Not a member yet? Register Sign In |