Newbie - Setup and URL Questions |
[eluser]joshdrew[/eluser]
I set up Codeigniter..left everything pretty much default. I was able to create a few pages and registration forms and so far so goo. My question is regarding urls and templates. I have a mysite.php controller file. this performs the necessary functions to pass variables into my view pages to get the right content for my template. ex: Code: function about() { I have a template file in views that pulls everything together Code: $this->load->view('includes/header'); I then added a default controller called "mysite" to the routes config. if I go to http://mysite.com I get the index page. Great. if I go to http://mysite.com/mysite/about I get the about page. Ok. Questions 1. How can i get the about page by just going to http://mysite.com/about. I can do that WITHOUT templates but not with one. I must have something set up incorrectly. 2. If I wanted a "members" area like http://mysite.com/members/index how do I set that up? do I create a subdirectory in the controllers dir called members? Thanks. |
Messages In This Thread |
Newbie - Setup and URL Questions - by El Forum - 01-22-2010, 08:16 AM
Newbie - Setup and URL Questions - by El Forum - 01-22-2010, 08:29 AM
Newbie - Setup and URL Questions - by El Forum - 01-22-2010, 08:32 AM
Newbie - Setup and URL Questions - by El Forum - 01-22-2010, 01:16 PM
Newbie - Setup and URL Questions - by El Forum - 01-22-2010, 01:54 PM
|