Welcome Guest, Not a member yet? Register   Sign In
uri segment
#1

[eluser]llogo[/eluser]
hi, i need to load a view but also i need to add a few uri segments, i tried with the load->view but what it does is to add a .php at the end of the file name that i m trying to add.

Well its something like this:


$this->load->view("games_view/2/3");


An Error Was Encountered

Unable to load the requested file: games_view/2/3.php
#2

[eluser]trice22[/eluser]
Could you elaborate a bit further what you're trying to do?
If you need to load a view depending on the uri segments you'd probably try something like:

Code:
$view_name = "games_view_".$this->uri->segment(2)."_".$this->uri->segment(3);
$this->load->view($view_name);

Does that make sense in your situation?

—trice




Theme © iAndrew 2016 - Forum software by © MyBB