HTMLTemplatePHP supports embedded PHP Code in your templates.
Native PHP Support for your templates.
Installation:
- install PHP-Interpreter (http://search.cpan.org/CPAN/authors/id/G/GS/GSCHLOSS/PHP-Interpreter-1.0.1.tar.gz)
- download file and put it in your lib/WebGUI/Asset/Template Folder
- edit your WebGUI.conf
E.g.:
...
<?php
echo "my UserId".$session->user()->userId()."<br>";
echo "FormParam:".$session->form()->process("formParam");
?>
...
this script is currently beta, backup your database/files before using.
please report bugs to (lb at lb.la)