A
A
AlexAll2019-05-05 15:02:32
opencart
AlexAll, 2019-05-05 15:02:32

How to correctly attach a tpl template to another one in opencart?

Hello, I'm trying to insert in the header controller

$data['icon'] = $this->load->view('common/icon.tpl');

So that icon.tpl can be displayed in header.tpl using a variable.
But they give an error that icon.tpl was not found in the default folder of the engine theme, but I have a different template, how can I make it look where it needs to?
Or is it done in some other way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2019-05-06
@zoozag

What version of opencart?
In theory it should be:
$this->load->view('common/icon');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question