J
J
John Bjornsen2018-10-24 19:02:11
opencart
John Bjornsen, 2018-10-24 19:02:11

Where are controller fields declared in OpenCart?

I decided to study OpenCart and randomly opened the product category page controller, and so it uses the fields of this class:

class ControllerProductCategory extends Controller {
  public function index() {
    $this->load->language('product/category');

    $this->load->model('catalog/category');

I decided to look at the list of all possible fields that can be used, but I did not find them in this class. Since the class is inherited from another class - Controller, I was hoping to see a list of available fields there, but they are not there either. The question is, where are the variables like load, language, and so on, referenced by $this, then declared? Probably a stupid question, but I still don't understand where to look for them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2018-10-24
@Bjornsen

docs.opencart.com/en-gb/developer/loading
Next:
/system/engine/loader.php
/system/engine/registry.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question