Skip to content

Commit

Permalink
fix label in forms
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Mar 25, 2024
1 parent 2e2eb45 commit 53c7802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generators/crud/default/views/_form.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use yii\helpers\Inflector;
use yii\helpers\StringHelper;

/**
Expand Down Expand Up @@ -50,7 +51,7 @@
?>

<?php
$label = $generator->generateString(substr(strrchr($model::class, '\\'), 1));
$label = $generator->generateString(Inflector::camel2words(StringHelper::basename($model::class)));
echo "<?=
Tabs::widget(
[
Expand Down

0 comments on commit 53c7802

Please sign in to comment.