Welcome Guest, Not a member yet? Register   Sign In
Linking to a Page
#5

[eluser]pickupman[/eluser]
Read the [url="http://ellislab.com/codeigniter/user-guide/general/routing.html"]URI routing[/url] from the user guide. CI doesn't work necessary by static php/html files that it seems what you are trying to do.

You will need to stop thinking of pages in that way. You don't "add" pages. Controllers are what handles the logic for displaying pages. The Controller as described in the link above, is the first part of your url. You can have a Pages controller. So a url would look like example.com/index.php/pages. This link will load the Pages controller and execute the index() method when found. Taking this thinking. if you have a Pages controller with an about() method would like example.com/index.php/pages/about.


Messages In This Thread
Linking to a Page - by El Forum - 12-09-2012, 03:21 PM
Linking to a Page - by El Forum - 12-09-2012, 03:30 PM
Linking to a Page - by El Forum - 12-09-2012, 03:43 PM
Linking to a Page - by El Forum - 12-09-2012, 04:15 PM
Linking to a Page - by El Forum - 12-09-2012, 05:24 PM
Linking to a Page - by El Forum - 12-09-2012, 08:13 PM
Linking to a Page - by El Forum - 12-10-2012, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB