Welcome Guest, Not a member yet? Register   Sign In
Help with routes
#6

[eluser]mironcho[/eluser]
Here they are.
page.php:
Code:
<?php

class Page extends Controller {

        function Page()
        {
                parent::Controller();
        }

        function index()
        {
                echo 'page';
                $this->load->view('welcome_message');
        }

        function test()
        {
                echo 'page/test';
                $this->load->view('welcome_message');
        }

}
?>
and admin.php:
Code:
<?php

class Admin extends Controller {

        function Admin()
        {
                parent::Controller();
        }

        function index()
        {
                echo 'admin';
                $this->load->view('welcome_message');
        }

        function blabla()
        {
                echo 'admin/blabla';
                $this->load->view('welcome_message');
        }

}
?>
I've tested with admin, admin/blabla, test (which goes to page/test).


Messages In This Thread
Help with routes - by El Forum - 04-23-2008, 12:07 PM
Help with routes - by El Forum - 04-23-2008, 02:38 PM
Help with routes - by El Forum - 04-23-2008, 02:44 PM
Help with routes - by El Forum - 04-23-2008, 03:03 PM
Help with routes - by El Forum - 04-23-2008, 03:06 PM
Help with routes - by El Forum - 04-23-2008, 03:11 PM
Help with routes - by El Forum - 04-23-2008, 03:35 PM
Help with routes - by El Forum - 04-23-2008, 03:40 PM
Help with routes - by El Forum - 04-23-2008, 03:43 PM
Help with routes - by El Forum - 04-23-2008, 03:44 PM
Help with routes - by El Forum - 04-23-2008, 03:46 PM
Help with routes - by El Forum - 04-23-2008, 03:51 PM
Help with routes - by El Forum - 04-23-2008, 03:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB