K
K
Karen Mnatsakanyan2018-12-15 21:55:43
opencart
Karen Mnatsakanyan, 2018-12-15 21:55:43

Why can't load controller Opencart 2.3?

Hi all!
Paste the code into the controller

$data['login'] = $this->load->controller('account/login');

then I display zero on the result page. What is the problem, who can say?
<?php echo $login; ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2019-12-31
@amfetamine

You are not confused by the presence of the $this->response->setOutput($this->load->view('account/login', $data)); in the controller? This is first, i.e. you need to create a separate controller for such loading.
And secondly, there you need to pass a token when calling

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question