Closed JayBizzle closed 7 years ago
Not firing for {include file='nav/test/test.tpl'}
I tried to
public function boot()
{
$this->app['view']->composer('nav.test.test', function (View $view) {
$view->with('message', 123456789123456789);
});
}
expected event composing: nav.test.test
but composing: test
Nice. That's looks very clean. You must have very thorough understanding of the Smarty internals!
Will test tonight, thanks!
Debugbar output before...
After...
Don't merge this PR as I wanted your feedback before fully testing it and writing any test.
The main thing I don't like about this method is having to override the
_subTemplateRender()
method which is rather large. I couldn't see of any other way of getting the full file path to the sub template.If you have any ideas, that'd be great