Welcome Guest, Not a member yet? Register   Sign In
New to CI & Fairly New to PHP. Trying to figure out the best Header/Nav/Content/Footer View Structure.
#1

[eluser]Unknown[/eluser]
Hello!

I'm pretty new to CodeIgniter but I must say so far I'm very very impressed with what I've been capable of doing with very little effort. I'm learning CI & PHP mostly by going through Jeffery Way's Nettuts "CodeIgniter from Scratch" series.

Now that I've learned the basic concepts however, I've started working on building an actual site and I have a few questions about how I should structure everything.

Generally I setup an index.php page that is my site's basic structure. It holds all the skeleton HTML code, the linked css files, the meta data and so on and through a PHP include I add the header, the navigation, the content (say... aboutus.php), and the footer. I'll get a URL like http://www.DOMAIN.com/index.php?id=home.

What's the best way to do something like this in CodeIgniter? If my approach is totally not something that you would do with a CI/MVC approach, I'd be happy to hear any suggestions that you may offer me that would get me on the right track.

Thanks everyone for your help!

Michael Wesley Stratton


Messages In This Thread
New to CI & Fairly New to PHP. Trying to figure out the best Header/Nav/Content/Footer View Structure. - by El Forum - 07-11-2010, 02:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB