[eluser]codeworxx[/eluser]
Hey Guys,
just started my first Project with CodeIgniter - a huge Webshop System.
Now i have my first Problem:
I have created my own Configuration File named 'shopconfig.php' in the 'application/config' folder and loaded by 'autoload'.
In this one i have declared
Code:
$config['shoptitle'] = 'Test';
For now i have created a Controller for my Home:
In this one i have
Code:
$data['sitetitle'] = $this->config->item( 'shoptitle' );
$this->load->vars( $data );
In my view i have the $sitetitle between <title>.
Everything works.
Now my Question:
Is it possible to load all own config Variables automatically with EACH controller?
Or do i have to load them like
Code:
$data['sitetitle'] = $this->config->item( 'shoptitle' );
in every Controller for every Variable?
Hope you understand what i mean!
Thanks,
Sascha
codeworxx development