Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 343 Vote(s) - 3.43 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to template prestashop module admin section with smarty

#1
I want to build a module where , we like to build the form and table using smarty.

In prestashop module controller load template file like
/modules/my_module/views/templates/front/my_module.tpl

where admin will be /modules/my_module/views/templates/admin/admin_module.tpl

My point is how can i show this admin_module.tpl in the prestashop module configuration page.
Reply

#2
It is really easy. You just have to create `views/templates/admin/foo.tpl` and then only display your template in `getContent()` method:

public function getContent()
{
return $this->display(__FILE__, 'views/templates/admin/foo.tpl');
}
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through