Commit cadf1b61 authored by Fredy Nurman Saleh's avatar Fredy Nurman Saleh

revert block label

parent cdd6c0cc
......@@ -98,7 +98,7 @@ $this->params['breadcrumbs'][] = <?= $generator->generateString('View') ?>;
<hr />
<?php
echo "<?php \$this->beginBlock('".substr(strrchr($model::className(), '\\'), 1)."'); ?>\n";
echo "<?php \$this->beginBlock('{$generator->modelClass}'); ?>\n";
?>
<?= $generator->partialView('detail_prepend', $model); ?>
......@@ -137,11 +137,11 @@ $this->params['breadcrumbs'][] = <?= $generator->generateString('View') ?>;
// get relation info $ prepare add button
$model = new $generator->modelClass();
$label = substr(strrchr($model::className(), '\\'), 1);
$items = <<<EOS
[
'label' => '<b class=""># '.\$model->{$model->primaryKey()[0]}.'</b>',
'content' => \$this->blocks['{$label}'],
'content' => \$this->blocks['{$generator->modelClass}'],
'active' => true,
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment