Global $config array: index code completion?

Hi all,

I am building a tiny mvc boilerplate and am attempting to allow a config array to be acessed from my controllers and methods and would like to be able to access indexes through code completion.

The only way that I have found that works is to use "gloabal $config;" inside each child controller and model class. Is there any way to get around this? I have tried asigning the array to a property of the base controller and model, but code completion doesn't persist.

Thanks

0

Please sign in to leave a comment.