fuel / parser

Fuel PHP Framework - v1.x template parser package adapters
http://fuelphp.com
64 stars 45 forks source link

Smarty Template Inheritance and Includes #18

Closed TreeNode closed 13 years ago

TreeNode commented 13 years ago

Including files or extending files require full path to templates directory:

For example:

{include '..\fuel\app\views\my_template.smarty'}

{extends file='..\fuel\app\views\header.smarty'}

jschreuder commented 13 years ago

Is this an issue? What do you expect? What do you currently get?

Be a bit more descriptive.

TreeNode commented 13 years ago

Was expecting to be able to just use

{include 'my_template.smarty'}

{extends file='header.smarty'}

And know to look into my views folder.

Would this be a parser config item?

Thank you

iquito commented 13 years ago

My pull request https://github.com/fuel/parser/pull/21 solved this by setting the template directory for Smarty.

TreeNode commented 13 years ago

That fixed the issue I was experiencing. Thanks iquito!