Stikki Posted May 19, 2015 Posted May 19, 2015 Hello people! I was trying to look way where i don't need to include .php file for each template, is this really mandatory? As in most cases prepend and append files are enough, templates folder gets full of stub files with <?php in em and nothing else, any cool work around to this? Cheers
LostKobrakai Posted May 19, 2015 Posted May 19, 2015 Just use the alternative template file setting for templates to let them all use the same file.
Stikki Posted May 19, 2015 Author Posted May 19, 2015 So that's no i guess Thanks for the answer tho.
LostKobrakai Posted May 19, 2015 Posted May 19, 2015 At least it's only a single file instead of lots of them.
Stikki Posted May 19, 2015 Author Posted May 19, 2015 That is true. Tried to override TemplateFile::___renderI(), but any change seems to cause 404.
LostKobrakai Posted May 19, 2015 Posted May 19, 2015 Without template file there's no way to check if a template is (should be) renderable or not.
Soma Posted May 19, 2015 Posted May 19, 2015 If you have no template file you won't see a "view" button. Rendering a page without a template results in 404. You need it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now