Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter url routing
#2

[eluser]pbreit[/eluser]
I don't think you need to use "routes" for that. Instead, create a Controller named "pages" and then Functions for each page. Have a look at the doc page for Controllers: http://ellislab.com/codeigniter/user-gui...llers.html

For example:
Code:
<?php
class Pages extends Controller {

    function index()
    {
        echo 'About Us';
    }

    function history()
    {
        echo 'Our history';
    }
}
?>


Messages In This Thread
CodeIgniter url routing - by El Forum - 06-25-2010, 10:06 AM
CodeIgniter url routing - by El Forum - 06-25-2010, 05:38 PM
CodeIgniter url routing - by El Forum - 06-26-2010, 12:27 AM
CodeIgniter url routing - by El Forum - 06-26-2010, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB