Post by garidinh » Tue Nov 08, 2016 5:52 pm

Hi
I want created multiple tpl for module, how to develop it?

Example

In module "Welcome", I want created multiple tpl (welcome1, welcome2..). Now how to select it in admin and load to home

Thanks?

Newbie

Posts

Joined
Tue Nov 08, 2016 5:27 pm


Post by paulfeakins » Tue Nov 08, 2016 6:48 pm

Really you need to go through the developer documentation here:
http://docs.opencart.com/developer/module/

But I'll give you a hint - towards the end of each controller, the template file is selected like this:

Code: Select all

$this->response->setOutput($this->load->view('module/information', $data));
So in this case, this is loading information.tpl from the module folder.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 22 guests