Hi guys,
I have a controller in a sub dir (controllers/admin/club_directory), even though my trace shows that the correct routed URI is coming through it doesnt seem to pass the argument to the method as expected (FYI I’m using CI 1.5.0.1)
Here’s the relevant snippet:
require_once(APPPATH.'controllers/front.php');
class Club_Directory extends Front {
function Club_Directory(){
parent::Front();
}
function view_club($id = ''){
echo $this->uri->ruri_string();//outuputs /club_directory/view_club/1/
die('id: '.$id);// outputs <empty string>
What am I doing wrong??? Would appreciate some help thanks! ![]()
