![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
yii
stolenli
早已没有玩的心,只有奋力向前奔跑的激情,永不止步,含恨而终
展开
-
yiii2安装smarty
①在main.php的components数组加入 'view' => [ 'renderers' => [ 'tpl' => [ 'class' => 'yii\smarty\ViewRenderer', //'cachePath' => '@run原创 2016-07-26 09:17:47 · 591 阅读 · 0 评论 -
Yii2注册js文件
Yii2注册js文件原创 2016-07-26 10:43:59 · 472 阅读 · 0 评论 -
Yii2片段缓存详解
// ..../view/site/index.php页面 <?php if($this->beginCache('cache')) { echo "这里待会会被缓存"; $this->endCache(); } echo "这里不会被缓存"; ?>转载 2017-01-26 12:03:37 · 597 阅读 · 0 评论