dev-master
9999999-dev http://philecms.comUse smarty template parser for PhileCMS
MIT
The Requires
by James Doyle
cms content phile
Use smarty template parser for PhileCMS
NOTE: This repository is not maintained anymore and archived., (*1)
Smarty(version 3.1.15 included) template parser for PhileCMS, (*2)
php composer.phar require phile/template-smarty:*
plugins/phile/templateSmarty
After you have installed the plugin. You need to add the following line to your config.php
file:, (*3)
$config['plugins']['phile\\templateSmarty'] = array('active' => true);
Modify your config.php
file:, (*4)
$config['plugins'] = array( // disable the Twig template engine 'phile\\templateTwig' => array('active' => false), // enable the Smarty template engine 'phile\\templateSmarty' => array('active' => true) );
Due to the nature of the Page model in Phile, and the fact that Smarty doesn't like objects, there are some slightly different properties available to the pages
array., (*5)
This covers most of the things that the pages
array covers in Twig., (*6)
If you have not used Smarty before, please read the docs because there are a few differences in syntax, and philosophy, over Twig., (*7)
I have included an index.tpl file to show how to recreate the index page from the default theme., (*8)
Use smarty template parser for PhileCMS
MIT
cms content phile