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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With