CodeIgniter Forums
template sturcture help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: template sturcture help (/showthread.php?tid=9879)



template sturcture help - El Forum - 07-11-2008

[eluser]Unknown[/eluser]
hi , i am new to this framework ,
can anyone suggest me how to develop an site suing this framework ...
i have gone throw the userguide,
i have problem in templating ....
some suggestions would work fine Smile
thanks anyways ...


template sturcture help - El Forum - 07-11-2008

[eluser]JasonS[/eluser]
There is nothing wrong with the standard code ignitor layout of MVC.

I personally lay out my view files a little differently.

i.e.

Views
-- header.php
-- footer.php

-- controller 1
---- Controller File
---- Controller File

This structure helps a lot with organisation.

I don't see why you would be having troubles with templating. Have a look at the welcome.php file. That has an example of loading a view in action. If your getting errors or have a specific problem can you expand a little please.