Closed cholthi closed 5 years ago
I will look at this on Friday or this weekend.
I've not looked in detail, but my first obvious comment is that to maintain BC, the layout path has to be the last parameter to render()
and must be optional.
@Rob Allen Yes you're right. I was actually the first victim of BC. Will definitely find a way to keep things BC
On Tue, Nov 28, 2017 at 9:55 AM, Rob Allen notifications@github.com wrote:
I've not looked in detail, but my first obvious comment is that to maintain BC, the layout path has to be the last parameter to render() and must be optional.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/slimphp/PHP-View/pull/38#issuecomment-347530331, or mute the thread https://github.com/notifications/unsubscribe-auth/AEQci6_k84oAJ6lLRQ9oaKideDXvuFaBks5s7BDJgaJpZM4QtIWh .
I like this
@cholthi will you update the code somewhen?
Let me look into it this week
On Tue, 21 Aug 2018 21:30 bas tey notifications@github.com wrote:
@cholthi https://github.com/cholthi will you update the code somewhen?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/slimphp/PHP-View/pull/38#issuecomment-414776271, or mute the thread https://github.com/notifications/unsubscribe-auth/AEQci_fye5hHAF4OXgi4auFXYSIB1lZ7ks5uTFG9gaJpZM4QtIWh .
Why has this PR not been merged ?
@akrabat why?
On Tue, Oct 30, 2018 at 2:02 PM debugMonstar notifications@github.com wrote:
Why has this PR not been merged ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/slimphp/PHP-View/pull/38#issuecomment-434257856, or mute the thread https://github.com/notifications/unsubscribe-auth/AEQcizPw4ivGU3Q6l9Q49js2dKzw6BRBks5uqDHPgaJpZM4QtIWh .
@mazeeblanke Because the BC issue hasn't yet been addressed.
This PR adds ability to wrap view templates inside layouts. This is very simple implementation that just renders templates inside other templates called layouts. This PR doesn't support advanced techniques like template inheritance and extending as it would make the package heavy and conflict the SLIM principle.
Tests are in the tests directory and tests the same scenarios as original tests of the package. Hope you like it!