Welcome Guest, Not a member yet? Register   Sign In
get uri segment for load view
#1

[eluser]Unknown[/eluser]
dear all i have case about uri segment

my url like this:

Code:
localhost/blog/contact

but i cannot load contact

this my controller:

Code:
$request_page = $this->uri->segment(1);
            if($request_page=='contact'){
                    $this->contact();
            }
    function contact()
     {
                $this->load->view('contact');
     }

how i can be load contact using model like that


Messages In This Thread
get uri segment for load view - by El Forum - 03-17-2012, 09:46 AM
get uri segment for load view - by El Forum - 03-17-2012, 03:29 PM
get uri segment for load view - by El Forum - 03-18-2012, 07:57 AM
get uri segment for load view - by El Forum - 03-18-2012, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB