Hello Friends,
Configuration variable are the core variables in any project. In Codelgniter we have codelgniter/application/config/config.php file to set configuration variable. Like I want to set a font_size globally in my project then I need to open config.php and write the code as below
$config['font_size'] = '16';
// now font_size set globally in the project
To fetch this variable in my controller file just write the below code:
$font_size = $this->config->item('font_size');
0 Comment(s)