smarty相关
由于我们已经有了一个自定义应用程序设置'MY_INF.php',那么可以在它里面设置SMARTY模板引擎选项
当然你也可以在index.php中设置,然后FLEA::loadAppInf();载入
<?php
'view' => 'FLEA_View_Smarty',
'viewConfig' => array(
'smartyDir' => ROOT_DIR . '/lib/Smarty',
'template_dir' => ROOT_DIR . '/www',
'compile_dir' => ROOT_DIR . '/templates_c',
'left_delimiter' => '{{',
'right_delimiter' => '}}',
),
<?php
//SMARTY使用
function actionSmarty()
{
$this->_executeView('demo_smarty.php', array('$test'=> 'I can user SMARTY.'));
} I can user SMARTY.
'view' => 'FLEA_View_Smarty',
'viewConfig' => array(
'smartyDir' => ROOT_DIR . '/lib/Smarty',
'template_dir' => ROOT_DIR . '/www',
'compile_dir' => ROOT_DIR . '/templates_c',
'left_delimiter' => '{{',
'right_delimiter' => '}}',
),
<?php
//SMARTY使用
function actionSmarty()
{
$this->_executeView('demo_smarty.php', array('$test'=> 'I can user SMARTY.'));
} I can user SMARTY.