N
N
nikitoshq2020-03-02 18:04:01
PHP
nikitoshq, 2020-03-02 18:04:01

How to open a new OpenCart page?

It turns out there is a twig file that needs to be executed and passed the $data variable, I can’t understand through which function this can be done, I tried this: It doesn’t work, can someone tell me? PS I'm not strong in MVC, I'm trying to learn by writing modules for OC, so don't judge too harshly.
$this->load->view('extension/common/shop', $data);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
liza2019, 2020-03-03
@liza2019

$data is not a variable, it's an array. if you want to pass $data it should look like this
$data['data'] = something;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question