Welcome Guest, Not a member yet? Register   Sign In
Please help Views and routes
#1

[eluser]Sveeaa[/eluser]
Sorry for this. i really dont know what to search for i tried for 2 days.

I wanna know have to changes views with links or buttons.
Code:
function index()
    {

        $layout_data['pageTitle'] = "mysite";

        
        $this->load->view('view_header', $layout_data);
        $this->load->view('view_page1');
        $this->load->view('view_footer');
    }
this is what my controller looks like right now and i only wanna change the view_login
to maybe view_page2
I wanna keep the header and foot always.
my header loads html body and my footer closes them.
so my view_page is only <div> and stuffs like that.
or do i have to have header och footer in some kind of global controller?

and routes i saw that you can make your own ones.
$route['default_controller'] = "page1"; <-defalt one;
if i would make one like
$route['cool'] = "page2"; <-defalt one; <- how can i use it?

sorry for beeing a newbie but im trying to understand it.

best regards Svea


Messages In This Thread
Please help Views and routes - by El Forum - 10-13-2010, 05:19 AM
Please help Views and routes - by El Forum - 10-13-2010, 08:22 AM
Please help Views and routes - by El Forum - 10-13-2010, 01:24 PM
Please help Views and routes - by El Forum - 10-13-2010, 05:02 PM
Please help Views and routes - by El Forum - 10-13-2010, 05:29 PM
Please help Views and routes - by El Forum - 10-13-2010, 05:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB