W
W
web-quest32016-12-25 12:42:01
PHP
web-quest3, 2016-12-25 12:42:01

What does this mean in opencart?

$this->model_setting_setting->editSetting
In this case, this is a pointer to the model_setting_setting object? which has the editSetting method? so it turns out
I have a pair with these arrows that still cause arrows, as I understand it, everything except the last one is objects and the last one is either a method or a property,
And what does opencart do in this line, the model setup, we don’t have a model with the name that is indicated in Method Edit Setting

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-12-25
@web-quest3

In this case, this is a pointer to the model_setting_setting object?

Definitely not
$this is an object that has a model_setting_setting method which apparently returns an object that has an editSetting method
Object does not mean model. It can be an instance of a controller class, or a module. Anything. One line is not understandable. I advise you to use an ide like phpstorm so that you can simply find where "legs grow" from.
Alternatively, display a variable to understand what it is, for example like this:
<pre>
<?php print_r($this)?>
</pre>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question