Fixed Bug: Loop processing did not worked as expected when several loops in one template had the same name.
Thanks to notification by Joel Janser, this bug has now been fixed.
The latest version 2.0.0 of PET is a complete rewrite and works only with PHP5.
The API and the template tags have changed so this release is not compatible with 1.x.x releases.
Its greatest benefits are the new API and tempalte tags, which are much more comfortable.
The german version of the latest P.E.T. (PHP Processor Engine For Templates) introduces a changed API for lesser typing and an improved documentation.
The next couple of days will bring us P.E.T.logic, the first extension for the P.E.T. class.
It enhances P.E.T. with some simple control-structure tags for the use within templates, e.g. IF and ELSE conditions. Further more, there will be tags for the definition of alternating bgcolors in table rows.
With the logic extension, P.E.T. becomes even more powerful, without giving up its ease of use.
Stay tuned!
The documentation of P.E.T., generated by phpDOC, is now online for reviewing it without having to download it.
english documentation:
http://php-pet.sourceforge.net/english_docs/
german documentation:
http://php-pet.sourceforge.net/german_docs/
Version 1.4 of the PHP Processor Engine for Templates has been released an comes with some great improvements:
- The new method $pet->assign() is an alias for $pet->add_content() and makes is easier to remeber for Smarty or FastTemplate users
- The Documentation has been completely rewritten, thanks to phpDocumentor and the developers (http://phpdocu.sourceforge.net): you did a great job! The documentation is now automatically generated from the comments in the source code which makes life MUCH easier.... read more
P.E.T. (PHP Processor Engine for Templates) class is released in version 1.3. P.E.T. cleans up your PHP scripts by using templates for output. It is quick to learn and easy to use but still powerful. With very few lines of code you display your output, use Server Side Includes, dump the result to disk and more.
The following bugs from 1.3 were fixed in 1.3.1:
- loops only display first characters if subloop is not an array
- a notice about an undefined variable on line 196/197... read more
P.E.T. (PHP Processor Engine for Templates) class is released in version 1.3. P.E.T. cleans up your PHP scripts by using templates for output. It is quick to learn and easy to use but still powerful. With very few lines of code you display your output, use Server Side Includes, dump the result to disk and more.
The new method "$pet->get_content" returns all content added by $pet->add_content until this moment for the reason of debugging.
P.E.T. (PHP Processor Engine for Templates) class is released in version 1.2 which contains a major improvement: A new method "$pet->add_content" is added. It allows you, to add content to the template-object during your script, making it deprecated to collect content throughout your whole script and adding it at the end of it with the "$pet->parse" command, which no longer requires the $content handed over.
The new version of P.E.T. (PHP Processor Engine for Templates) has minor improvements but is now available both in english and german.