Answer the question
In order to leave comments, you need to log in
How to display variable from ControllerCommonFooter in product view in opencart?
The controller and view specified for an example. Very often you need to see variables created in a view that is NOT of the same name (NOT of the same name as the controller). That is, they are not transferred there by the logic of the kernel.
Suggestions to also create this variable in the ControllerProduct controller (that is, the one with the same name as the view), by stupidly copying the code from the ControllerCommonFooter are not accepted.
Is there any mechanism for adequate data globalization?
Answer the question
In order to leave comments, you need to log in
Dirty method: in the system/engine/controller.php constructor, declare the desired variable. All other classes inherit from this class. To make the code cleaner, use vqmod to make changes, but here I'm not sure, I've never climbed into the kernel with a vqmod, maybe it does not support its modification, although I think it should.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question