I have my configuration detail in config.php
as follows:
$config["system_images"] = "path to the folder";
I have created my own library FORM
, in which I need to use above value in $config["system_images"]
. So I called it, $this->config->item("system_images")
. I don't load any configuration file, because I use the default configuration file. But following error occurred:
Parse error: syntax error, unexpected '$this' (T_VARIABLE) in D:\MYSERVER\wamp\www\ci\application\libraries\Form.php on line 3
How should I use values defined in configuration file in my own library?