Php simple template class




















Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 2 months ago. Active 5 years, 1 month ago. Viewed 5k times. Improve this question. Andrea Jordyn Jordyn 1, 1 1 gold badge 12 12 silver badges 25 25 bronze badges.

Add a comment. Active Oldest Votes. In the tutorial they do the same: include "template. Thanks for your text and php class Noticed that there is no template example. I think it would be great for understanding for beginners. Going to use it in my work! Both great suggestions! Great template class! So a template that renders templates. If that makes sense? Apologies for the slow reply. Your email address will not be published.

Cyclonecode , that's true. What would you recommend as an improvement to the class? I'm open to any ideas that make it more reliable and easy to use. First of all I think I would set visibility for the different methods,. If this is the case I really think they should be declared as private or protected. Of course the folder property also should be set to private or protected in this case.

After that I think changing the render method to something like this might be a good idea:. Skip to content. Sign in Sign up. Instantly share code, notes, and snippets.



0コメント

  • 1000 / 1000