1 定义子模板
use yii\helpers\Html;
this is child
2 模板包含
use yii\helpers\Html;
/* @var $this yii\web\View */
$this->title = 'About';
echo $this->render('_left');
微信扫一扫
<?php
use yii\helpers\Html;
?>
this is child
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
$this->title = 'About';
?>
<?php echo $this->render('_left');?>
相关推荐