CodeIgniter - accessing $config variable in view
Posted
by PHP thinker
on Stack Overflow
See other posts from Stack Overflow
or by PHP thinker
Published on 2010-04-13T16:45:14Z
Indexed on
2010/04/13
17:03 UTC
Read the original article
Hit count: 201
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?
© Stack Overflow or respective owner