PiKey
PiKey

Reputation: 678

Prestashop Smarty Include dies a script

I'm making a ten template for Prestahop (1.4.4.1). Any template file like authentication.tpl dies where is include:

{include file=$tpl_dir./errors.tpl}

I don't know why this is not working. I tried {include file="./errors.tpl"}, {include file="errors.tpl"} but result is same.

Thanks for every reply

Upvotes: 2

Views: 1287

Answers (2)

smepie
smepie

Reputation: 509

Prestashop 1.4 uses Smarty 3 as default... so try

{include file="$tpl_dir./errors.tpl"}

Upvotes: 2

Cédric Mourizard
Cédric Mourizard

Reputation: 576

Are you sure that your template is located in your smarty $template_dir? If not, this page from the smarty documentation could help you: http://www.smarty.net/docsv2/en/template.resources.tpl

Upvotes: 1

Related Questions