slimphp / PHP-View

A Simple PHP Renderer for Slim 3 & 4 (or any other PSR-7 project)
MIT License
264 stars 60 forks source link

Added layouts and automatic file extension #15

Closed berarma closed 8 years ago

berarma commented 8 years ago

Added a method to use layout template files. Also, the .php extension in template file names is optional. The trailing slash in the template path is optional too. And some CS fixes.

berarma commented 8 years ago

Done.

geggleto commented 8 years ago

//cc @akrabat looks good to me

@berarma As a separate PR would you mind updating the readme.md ?

berarma commented 8 years ago

OK, I'll do. I'm new to Slim and just starting my first project with it. If you can think of a better way to do it please tell me.

geggleto commented 8 years ago

I no longer think that this will be required. Please see #19 In 2.1 you will be able to render sub-templates in the view.

geggleto commented 8 years ago

Closing In favour of #19 , #21