07-19-2011, 03:44 AM
[eluser]tomas[/eluser]
If I create a new controller, let's say Test and then add index and test actions,
going to index.php/test/test executes the index action instead of the test action
navigating tooutputs 'here' instead of 'there'
If I create a new controller, let's say Test and then add index and test actions,
going to index.php/test/test executes the index action instead of the test action
Code:
class Test extends CI_Controller {
public function __construct(){
parent::__construct();
}
public function index(){
echo 'here';
}
public function test(){
echo 'there';
}
}
navigating to
Code:
index.php/test/test