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

[eluser]saidbakr[/eluser]
Hello,
I tried to make custom configuration file in application/config folder and then add it to autoload but it failed to globally propagate its values to the application. Typically I did the following two try:

1- Create a file called config1.php in the config folder and the following is its code:
Code:
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* Custom Configurations:
*/
$config['fox_entry_words_count'] = 50;
The application returns an error message tell that the variable config is undefined.

2- I created the same file but I defined new array for cofiguartion and I called it config1. In this case the whole application is stopped and returned a message tell the following:
Quote:Your config1.php file does not appear to contain a valid configuration array.

How could I able to do custom configurations and what's its rules to be globbaly loaded. By the way, I loaded it in autoload.php
$autoload['config'] = array('config1');


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