【发布时间】:2015-04-19 01:19:49
【问题描述】:
我有一个标签小部件:
echo Tabs::widget([
'items' => [
[
'label' => 'Add Staff',
'icon' => 'user',
'content' => "Add Staff page loaded here",
'active' => true
],
[
'label' => 'Store Configuration',
'content' => 'Store Configuration page loaded here',
//'headerOptions' => [...],
'options' => ['id' => 'myveryownID'],
],
[
'label' => 'Transaction',
'items' => [
[
'label' => 'Add Transaction',
'content' => 'Add Transaction page loaded here',
],
[
'label' => 'View Transaction',
'content' => 'View Transaction page loaded here',
],
],
],
],
]);
如何在选项卡内容中呈现页面(如果可能,无需重新加载整个页面)?可能吗?我试过这个:
'content' => "<?= $this->render('createbizstaff', ['searchModel' => $searchModel,'dataProvider' => $dataProvider,]); =>"
但它只会产生这个错误:
Getting unknown property: yii\web\View::render
如果您知道如何处理此问题,请告诉我。
【问题讨论】: