CodeIgniter Forums
Setting up my design in CodeIgniter - 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: Setting up my design in CodeIgniter (/showthread.php?tid=56651)



Setting up my design in CodeIgniter - El Forum - 01-09-2013

[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?


Setting up my design in CodeIgniter - El Forum - 01-09-2013

[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-roundups/30-awesome-codeigniter-tutorials-for-all-skill-levels/


Setting up my design in CodeIgniter - El Forum - 01-09-2013

[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-roundups/30-awesome-codeigniter-tutorials-for-all-skill-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. Sad


Setting up my design in CodeIgniter - El Forum - 01-09-2013

[eluser]Otemu[/eluser]
Check this out http://williamsconcepts.com/ci/codeigniter/libraries/template/reference.html


Setting up my design in CodeIgniter - El Forum - 01-09-2013

[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/library/wa-codeigniter/

Also eventually your probably need to look at
https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-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.


Setting up my design in CodeIgniter - El Forum - 01-09-2013

[eluser]Patrick Reck[/eluser]
Doublepost


Setting up my design in CodeIgniter - El Forum - 01-09-2013

[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/library/wa-codeigniter/

Also eventually your probably need to look at
https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-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