I am currently developing OpenCart extensions. I am looking through existing extensions to understand the architecture (and familiarizing MVC/PHPOO concepts).
Frequently, this line of code comes up:
$seller_email = $this->config->get('service_seller_email');
My interpretation based on reading this thread:
I understand that this is a variable assignment, where it's accessing a model (?) called config
to retrieve a string called service_seller_email
from the admin settings portal. However, I have tried navigating through the various MVC folders within OpenCart, and I could not find a specific config.php
. Could you please correct my interpretation if it's wrong?
EDIT: To add to the confusion, the article I linked specifies that you need to load
a config
in a controller before using it, like $this->language->load('product/search');
, but I cannot find a line such as $this->config->load('...');
or the like.