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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -