ytake / Laravel.Smarty

smarty template engine for laravel
MIT License
85 stars 24 forks source link

ytake-laravel-smarty.php config file has no effect #69

Open officialkirill opened 4 years ago

officialkirill commented 4 years ago

Hi! Using Laravel 7.14.1 with Laravel.Smarty 4.0.0. Changing the 'template_path' variable in ytake-laravel-smarty.php has no effect on loading view files from that path. I had to change the path from config/view.php for it work. Is this expected behavior?

Same goes for the compile/cache path.

cdarken commented 3 years ago

@officialkirill are you sure about the compile and cache paths? those seem to work for me, because they're managed by Smarty. The template path is another issue, because the template is found by FileViewFinder that doesn't know to look into that directory. So putting the path in config/view.php is a workaround for this.