Stikki Posted May 19, 2015 Share 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 Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 19, 2015 Share Posted May 19, 2015 Just use the alternative template file setting for templates to let them all use the same file. Link to comment Share on other sites More sharing options...
Stikki Posted May 19, 2015 Author Share Posted May 19, 2015 So that's no i guess Thanks for the answer tho. Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 19, 2015 Share Posted May 19, 2015 At least it's only a single file instead of lots of them. Link to comment Share on other sites More sharing options...
Stikki Posted May 19, 2015 Author Share Posted May 19, 2015 That is true. Tried to override TemplateFile::___renderI(), but any change seems to cause 404. Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 19, 2015 Share Posted May 19, 2015 Without template file there's no way to check if a template is (should be) renderable or not. Link to comment Share on other sites More sharing options...
Soma Posted May 19, 2015 Share 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. Link to comment Share on other sites More sharing options...
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