Welcome Guest, Not a member yet? Register   Sign In
SOLVED: How to set config value at startup using a function, including database query
#6

[eluser]mah0001[/eluser]
Your welcome controller is still extending CI_Controller instead of MY_Controller. Replace CI_Controller with MY_Controller as below:

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

class Welcome extends MY_Controller {

public function show_value()
{
    echo 'TEST_ID =' . $this->config->item('TEST_ID');
}

}
/* End of file application/welcome.php */


Messages In This Thread
SOLVED: How to set config value at startup using a function, including database query - by El Forum - 02-01-2012, 06:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB