I need to access some config items within routes.php. The config file has been autoloaded. It seems like routes file is loading earlier in CI life cycle and mostly static. Is it still possible to do so?
Using constants may be an alternative. But I prefer configs in my scenario.
Can anyone please help me to accomplish this?
$route[$this->config->item('cms')['admin']['folder']] = "project-cms/admin/index";
work for me