Welcome Guest, Not a member yet? Register   Sign In
Custom Configuration File For Application
#8

[eluser]carvingCode[/eluser]
Having trouble using a custom config file. File is named 'app_config.php' and stored in the 'config' folder.

Get error: 'Your app_config.php file does not appear to contain a valid configuration array.'

Loading it:

Code:
$this->config->load('app_config');

Calling it:

Code:
$config = $this->config->item('cc_pagination_tags', 'app_config');

Code in app_config.php:

Code:
$cc_pagination_tags = array(
    'first_tag_open'    => ' | ',
    'first_tag_close'    => ' |',
    'last_tag_open'        => '| ',
    'last_tag_close'    => '| ',
    'num_tag_open'        => ' | ',
    'next_tag_open'        => ' | ',
    'next_tag_close'    => ' '
);

What am I missing?

TIA


Messages In This Thread
Custom Configuration File For Application - by El Forum - 01-29-2009, 08:52 AM
Custom Configuration File For Application - by El Forum - 01-29-2009, 09:16 AM
Custom Configuration File For Application - by El Forum - 01-29-2009, 10:31 AM
Custom Configuration File For Application - by El Forum - 09-21-2009, 04:56 PM
Custom Configuration File For Application - by El Forum - 09-22-2009, 12:23 AM
Custom Configuration File For Application - by El Forum - 09-22-2009, 02:44 AM
Custom Configuration File For Application - by El Forum - 09-22-2009, 03:17 PM
Custom Configuration File For Application - by El Forum - 04-30-2010, 06:23 AM
Custom Configuration File For Application - by El Forum - 04-30-2010, 07:32 AM
Custom Configuration File For Application - by El Forum - 04-30-2010, 08:50 AM
Custom Configuration File For Application - by El Forum - 04-30-2010, 09:25 AM
Custom Configuration File For Application - by El Forum - 04-30-2010, 11:05 AM
Custom Configuration File For Application - by El Forum - 04-30-2010, 12:50 PM
Custom Configuration File For Application - by El Forum - 04-30-2010, 01:47 PM
Custom Configuration File For Application - by El Forum - 04-30-2010, 01:49 PM
Custom Configuration File For Application - by El Forum - 04-30-2010, 03:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB