Browse Source

Merge pull request #895 from iJackUA/patch-1

Fix parenthesis typo in CRUD index template
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
df091b15a8
  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