CodeIgniter Forums
Get custom config file array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forum-10.html)
+--- Thread: Get custom config file array (/thread-68856.html)



Get custom config file array - omid_student - 09-05-2017

Hello
I have config file with filename app.php in application/config
I load it in my project.
You know that we can get all item of array with $this->config->config
But i need get all item from app.php (when i use $this->config->app,it get error)


RE: Get custom config file array - InsiteFX - 09-05-2017

Use include or require statements:

PHP Code:
<?php include (APPPATH.'config/app.php'); ?>