继承Smarty,这样写可以么??? - PHP进阶讨论
[php]template_dir=\'templates/\'.$dir.\'/\';??$this->compile_dir=\'templates/\'.$dir....
[php]template_dir = \'templates/\'.$dir.\'/\';??$this->compile_dir = \'templates/\'.$dir.\'/templates_c/\';??$this->config_dir = \'templates/\'.$dir.\'/configs/\';??$this->cache_dir = \'templates/\'.$dir.\'/cache/\';??$this->caching??= TRUE;??$this->left_delimiter = \'right_delimiter = \'}>\';??$this->assign($html);??$this->display($tpl);}}?>[/php][php]$tpl = new Template($html,\'index.tpl\',_TEMPLATE);? ?? ???/* 输出至模板 */[/php]
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询