Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2010-12-21 (5 years ago) ![]() | Not enough user ratings | Total: 595 | All time: 4,971 This week: 1,113![]() |
Version | License | PHP version | Categories | |||
simple-template 1.0 | Freeware | 5.0 | PHP 5, Templates |
Description | Author | |
This package implements a template engine based on PHP template scripts. |
SimpleTemplate PHP Template Engine (written by Michele Brodoloni <mik (dot) linux (at) gmail (dot) com>) ------------------------------------------------------------------------ 23-Jun-2011 IMPORTANT NOTE: This project has been moved to sourceforge due to practical reasons. There you can find a more updated version of this class which include: - Helpers autoloading with custom options - Possibility to keep templates/helpers/etc. out of the web root - Several fixes on trunk code - An extensive example on how to use the template engine (still in development) You can checkout the whole project using SVN: svn co https://simple-template.svn.sourceforge.net/svnroot/simple-template/trunk simple-template ------------------------------------------------------------------------ .:: INTRODUCTION ::. This is a simple template engine I wrote to accomplish the goal of separating the business logic from presentation and would like to avoid using complex template engines like Smarty. It has been inspired by the Zend_View component of the Zend Framework. Try it and let me know you what you think. .:: DEPENDENCIES ::. - PHP 5 or higher .:: FEATURES ::. - PHP code is simple to understand - PHP code uses phpDocumentor commenting style. - Light and easy to use - Template helpers support (global and per single view) - Template header and footer support - Possibility to include templates within templates - Support for template logic (as we use PHP for templating language) - No *tag-search-n-replace* overhead - Extensible and customizable (as of OOP pattern) - More... :) .:: EXAMPLES & DOCUMENTATION ::. See the attached examples files for more information. Just download the whole package and extract it into a web directory. After that, just call an exampleN.php script within you browser and have fun. About the documentation: this is my first attempt to use phpDocumentor (www.phpdoc.org), and it may be incomplete and non-working, so, if you can give me hints on how to fix this, or maybe fix it for me, this would be really appreciated. .:: SUPPORT ::. If you liked this class and decided to employ it on your site/blog/webapp, you are pleased to let me know, and if you wish, you may offer me a coffee using the paypal donation button on example4.php. Thanks. If you made efforts to add features, bugfixes, complain about the uselessness of this class, or you simply want to leave a personal comment, you are welcome to write me, and explain what you have done and why. |
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Doc. | README File | ||
![]() |
Example | Common include file | ||
![]() |
Example | Example Script #1 | ||
![]() |
Example | Example Script #2 | ||
![]() |
Example | Example Script #3 | ||
![]() |
Example | Example Script #4 | ||
![]() |
Example | Example Script #5 |
![]() |
/ | include |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
Class | SimpleTemplate Class | ||
![]() |
Class | SimpleTemplateHelper Class | ||
![]() |
Class | SimpleTemplateView Class |
![]() |
/ | include | / | helpers |
File | Role | Description |
---|---|---|
![]() |
Class | HTML Helper Class |
![]() |
Class | PayPal Helper Class |
![]() |
/ | templates |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
Example | Example Template #1 | ||
![]() |
Example | Example Template #2 | ||
![]() |
Example | Example Template #3 | ||
![]() |
Example | Example Template #4 | ||
![]() |
Example | Example Template #5 |
![]() |
/ | templates | / | example2 |
File | Role | Description |
---|---|---|
![]() |
Example | Example Template Footer #2 |
![]() |
Example | Example Template Header #2 |
![]() |
/ | templates | / | example3 |
File | Role | Description |
---|---|---|
![]() |
Example | Example Template Footer #3 |
![]() |
Example | Example Template Header #3 |
![]() |
/ | templates | / | source |
File | Role | Description |
---|---|---|
![]() |
Aux. | Example Script |
![]() |
Aux. | Example Script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.