CodeIgniter - accessing $config variable in view
Asked 07 September, 2021
Viewed 2.3K times
  • 50
Votes

Pretty often I need to access $config variables in views. I know I can pass them from controller to load->view(). But it seems excessive to do it explicitly.

Is there some way or trick to access $config variable from CI views without disturbing controllers with spare code?

11 Answer