CodeIgniter dynamic Base URL -
i want create codigniter project url structure https://localhost/project_name/abcde/mycontroller/myfunction
where base_url https://localhost/project_name/abcde/
andabcde
come database.
means, want
$this->uri->segment(1); //abcde(comes database) $this->uri->segment(2); //controller $this->uri->segment(3); //function
you need make pattern abcde. should common prefix. can use common prefix identifier in routes.php , based on route, direct user controller-method combination. refer this guide.
Comments
Post a Comment