Welcome Guest, Not a member yet? Register   Sign In
[solved] Shoot me or tell me why URI CLASS doesn't work.Isn't it similar?
#1

[eluser]Jan_1[/eluser]
I don't understand why my URI CLASS works fine in one Module and not in an other.
I do get '404 page not found' when I put something after the controllers name in the url (segment 2 and more)
There is no special config. Am I mad?

Could someone please give me a hint what to look for? What should I check?

Code:
class Replacementcar extends Front_Controller
{
public function __construct()
{
  parent::__construct();
}

public function index()
{
  $this->insurances(); // set the method for the index page
}

public function insurances()
    {  
  echo $this->uri->uri_string();
}
}
does not work when i put a second segment in url

Code:
class Resources extends Front_Controller
{
public function __construct()
{
  parent::__construct();
}

public function index()
{
  $this->insurances(); // set the method for the index page
}

public function insurances()
    {  
  echo $this->uri->uri_string();
}

}
shows me everything i put behind index.php/resources/
#2

[eluser]Jan_1[/eluser]
cleaned browser cache, etc. send apache to sleep. restarted computer and xampp.
Started coding at zero. Did all the same way. No problems anymore.
So no question of shooting me, but more of shooting/shuting down the machine.
#3

[eluser]Mauricio de Abreu Antunes[/eluser]
Nice!
I need help in other threads, but i have no success for now. Sad




Theme © iAndrew 2016 - Forum software by © MyBB