I am try to write code on this way. I wanna make new config file and load items from it
config file
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = TRUE;
model
function item($key)
{
$data = array();
$config = $this->config->item($key);
foreach ($config as $row){
$data = $row;
}
return $data['value'];
Am I on right way to do this in correct way?