Welcome Guest, Not a member yet? Register   Sign In
need help about load config
#1

[eluser]Unknown[/eluser]
How can I load a config into a variable without changing $this->config like:
Code:
$form_config = $this->config->load('form')
pls help me.
#2

[eluser]jvicab[/eluser]
it is not clear for me what you want to do
#3

[eluser]Unknown[/eluser]
I want to transfer all config in the application/config/form.php into a variable $form_config without changing components $ this-> config of CodeIgniter.

in my form.php
Code:
$config['form_config'] = 'some data';

original:
Code:
$this->load->config('form');
$form_config = $this->config->item('form_config');
but i want to
Code:
$form_config = $this->load->config('form');
// after that $this->config still does not change, i can't call $this->config->item('form_config'); to get my config
#4

[eluser]Aken[/eluser]
This is not available in CI as it stands. You'd need to extend the Config class somehow. Play around with it and see if you can get the result you want.
#5

[eluser]bubbafoley[/eluser]
whoops just reread what you are trying to do




Theme © iAndrew 2016 - Forum software by © MyBB