Browse Source

gii index view template: make sure create link is split into words

tags/2.0.0-beta
Wouter Slob 11 years ago
parent
commit
b3112cdc31
  1. 2
      extensions/yii/gii/generators/crud/templates/views/index.php

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

@ -33,7 +33,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?= "<?php " . ($generator->indexWidgetType === 'grid' ? "// " : "") ?>echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= "<?= " ?>Html::a('Create <?= StringHelper::basename($generator->modelClass) ?>', ['create'], ['class' => 'btn btn-success']) ?>
<?= "<?= " ?>Html::a('Create <?= Inflector::camel2words(StringHelper::basename($generator->modelClass)) ?>', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?php if ($generator->indexWidgetType === 'grid'): ?>

Loading…
Cancel
Save