panique / mini

Just an extremely simple naked PHP application, useful for small projects and quick prototypes. Some might call it a micro framework :)
1.35k stars 479 forks source link

header and footer in 1 file? #211

Closed ghost closed 8 years ago

ghost commented 8 years ago

First of all thanks for this well documented ans easy framework!

Is it possible to have the header.php and footer.php in the folder "views" combined into 1 file, like template.php?

ugurozturk commented 8 years ago

May i ask why do you need that ? Even i am using meta.php - header.php - footer.php

ghost commented 8 years ago

I think this is better; it avoid 1 file request to server and it is easier for me to read the complete layout in that way. Do you know if this easy to achieve?

ugurozturk commented 8 years ago

I got what you meaning. Like Asp.NET Master Page. I think you can't do that with that. You must rewrite routings, Application settings. There is no easy way to do that

Btw, this is not Framework. This is only php boilerplate