Welcome Guest, Not a member yet? Register   Sign In
Get custom config file array
#1

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)
Reply
#2

Use include or require statements:

PHP Code:
<?php include (APPPATH.'config/app.php'); ?>
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB