Browse Source

Fix parenthesis typo in CRUD index template

it was causing blocking PHP error
tags/2.0.0-beta
iJackUA 11 years ago
parent
commit
73cdbb37c0
  1. 2
      framework/yii/gii/generators/crud/templates/views/index.php

2
framework/yii/gii/generators/crud/templates/views/index.php

@ -63,7 +63,7 @@ foreach ($generator->getTableSchema()->columns as $column) {
'class' => 'item',
),
'itemView' => function ($model, $key, $index, $widget) {
return Html::a(Html::encode($model-><?php echo $nameAttribute; ?>), array('view', <?php echo $urlParams; ?>);
return Html::a(Html::encode($model-><?php echo $nameAttribute; ?>), array('view', <?php echo $urlParams; ?>));
},
)); ?>
<?php endif; ?>

Loading…
Cancel
Save