2


I have use opencart 2.3x version for create new theme...
I want to load controller in template file (.tpl).

 <?php
     $load = $this->registry->get('load');
     $html = $load->controller('module/hit_sidebar',$data);
 ?>

But it will give error :

Notice: Undefined property: Template\PHP:registry

How can i solve this...?

Bhavik Hirani
  • 1,996
  • 4
  • 28
  • 46

1 Answers1

1

You can not use registry in template(.tpl) file in opencart 2.3x version.

it work only lower then opencart 2.2x version..