My controller squad manages all the functionality of an internal group within the larger community of the CMS. I would like to offer admin the ability to change the verb that refers to this group. Examples of such could be: team, wing, platoon, or even dogfood if it satisfies them.
The problem I am encountering is needing to pull the routing from a database string so site.com/squad becomes the value the administrator sets. However. one cannot do this without a) hacking the core or b) extending the CI_Router.
I have started the extension, but only got this far:
class MY_Router extends CI_Router {
function MY_Router()
{
$this->config =& get_config();
parent::__construct();
}
}
All I would like to accomplish is:
define('UNIT', $this->get_setting('squad-term'));
$route[UNIT] = "squad";
Does anybody have an approach to this?