O
O
Oklick2017-05-17 20:36:27
opencart
Oklick, 2017-05-17 20:36:27

How to display the registration and login form on the main page in OpenCart 2.1?

Good day!
There was a following problem. By design, the login and registration forms should be in the header of the site.
Tried doing the following:
In home.php

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

In home.tpl , login.tpl contains the form itself. There is no result. Tell me what am I doing wrong?
<?php echo $login; ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2017-05-17
@PavelMonro

The file is responsible for the header: header.php and header.tpl
In addition to the controller, you also need a module, turn on the output of all Php errors and opencart.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question