Skip to content

Commit

Permalink
Fix up enums
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 7, 2024
1 parent 5f8b51e commit 81ae3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Sandbox/templates/CakeExamples/enums.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function initialize(array \$config): void {
<h4>Manuel form (without entity passed in)</h4>

<?php echo $this->Form->create(); ?>
<?php echo $this->Form->control('status', ['options' => \Sandbox\Model\Enum\UserStatus::options([\Sandbox\Model\Enum\UserStatus::DELETED, \Sandbox\Model\Enum\UserStatus::ACTIVE])]); ?>
<?php echo $this->Form->control('status', ['options' => \Sandbox\Model\Enum\UserStatus::options([\Sandbox\Model\Enum\UserStatus::Deleted, \Sandbox\Model\Enum\UserStatus::Active])]); ?>
<?php echo $this->Form->submit(); ?>
<?php echo $this->Form->end(); ?>

Expand Down

0 comments on commit 81ae3a2

Please sign in to comment.