This MODX Extra allow to use template with php-code.
Just create new phpTemplateResource, and all static modTemplates with extension .php will be includes like pure php-files.
Project on GitHub: https://github.com/Fi1osof/phptemplates
Just create static template with php-code (with php-extension of static file, like .php) and change modResource to phpTemplateResource.
Attension! If you used verion minor that 1.4.0, you may recive in page output 1. Remember: in static modTemplate return $output; required.
- First seen
- Supported databases
- MySQL SQL Server
- Minimum MODX Requirement
|MODX.com||1.5.2-beta||2012-12-06 (8 years ago)|
We've also seen 2 unverified versions of phpTemplates in use, but don't list those as we've been unable of confirming they are official releases from an official source.