fuel / parser

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

Add template_dir to Smarty so {include} works as expected #21

Closed iquito closed 13 years ago

iquito commented 13 years ago

Using {include} in Smarty templates fails (if no absolute path is used) because no template directory was set for Smarty, so it does not know where to look for templates.

My solution is not perfect, as it does not support the cascading file system of the fuel View::factory-implementation, instead it only looks in the views-path of the application - but the only other solution (as far as I can see) would be to directly edit Smarty so Smarty calls View::factory for every {include}.