Jump to content

Use theme files (tpl) using custom module


Recommended Posts

I've made a custom module to make a wizard. I want to use the 'default' theme files, but I got an error.

 

This is from modules/mycustomwizard/controllers/front/products.php:

$this->setTemplate(_PS_THEME_DIR_ .'product-list.tpl');

In 'log/20130914_exception.log' I found this:

*ERROR* 2013/09/14 - 21:42:30: Template '/home/***/domains/****/public_html/themes/*****/product-list.tpl'' not found at line 61 in file classes/controller/ModuleFrontController.php

Why can't I use that template file? The given file does exist, but computer says no. Why?!

 

If I skip '_PS_THEME_DIR_', it doesn't work either (Template 'product-list.tpl'' not found).

Edited by svierkant (see edit history)
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...