Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to find template function when extends in 3.1.29 #240

Closed
hkuclion opened this issue Jun 9, 2016 · 1 comment
Closed

fail to find template function when extends in 3.1.29 #240

hkuclion opened this issue Jun 9, 2016 · 1 comment

Comments

@hkuclion
Copy link

hkuclion commented Jun 9, 2016

what I did

testExtendsFunctionBase.html

{function name=hkuc}{/function}
{block name=layout}{/block}

testExtendsFunction.html

{extends file="./testExtendsFunctionBase.html"}

{block name=layout}
{function name=lion}hkuclion{/function}

{call lion}
{/block}

what I expected

hkuclion

what I got

Fatal error: Uncaught --> Smarty: Unable to find template function 'lion' <-- thrown in \Smarty\smarty-3.1.29\libs\sysplugins\smarty_internal_runtime_tplfunction.php on line 45

further test

It's OK when use
{include file="./testExtendsFunctionBase.html"}
or remove
{function name=hkuc}{/function}
or use Smarty version below 3.1.29 (ie 3.1.27)

@uwetews
Copy link
Contributor

uwetews commented Jul 12, 2016

This is fixed now in the master branch

@uwetews uwetews closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants