Answer the question
In order to leave comments, you need to log in
How to make a variable from one controller available in another?
That's the whole question. There is Opencart 2.1.0.1 and there is such a thing that variables from some controllers are not available in others. Is there any easy way around this? without creating global variables?
Answer the question
In order to leave comments, you need to log in
libraries?
https://ellislab.com/codeigniter/user-guide/genera...
See examples in the system\library folder there. For example session.
Loaded in framework.php
// Library Autoload
if ($config->has('library_autoload')) {
foreach ($config->get('library_autoload') as $value) {
$loader->library($value);
}
}
// Autoload Libraries
$_['library_autoload'] = array();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question