Welcome Guest, Not a member yet? Register   Sign In
Config variable only returning first letter?
#1

[eluser]joehopkins[/eluser]
Hi,

I'm setting a variable to be used globally across the site so I thought I'd load a config file:

config/Sitevariables.php

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['site_name'] = 'BAA CRM';

config/autoload.php

Code:
$autoload['config'] = array('email', 'Sitevariables');

anything.php

Code:
echo $this->config->item('Sitevariables', 'site_name')

Returns 'B'. Just the first letter.

What is going on?!!!! Why doth CodeIgniter forsake me so?

Thanks,

Joe


Messages In This Thread
Config variable only returning first letter? - by El Forum - 08-06-2011, 09:51 AM
Config variable only returning first letter? - by El Forum - 08-06-2011, 11:41 AM
Config variable only returning first letter? - by El Forum - 08-06-2011, 11:55 PM
Config variable only returning first letter? - by El Forum - 08-08-2011, 03:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB