Closed Ali1 closed 8 years ago
Currently using:
$LeadsTable = new App\Model\Table\LeadsTable;
echo $this->Form->input('type', ['options' => $LeadsTable->enum('type')]);
Hello @Ali1 , could you take a look in the #16 pull request? There is the documentation showing the best way to solve your problem.
@Ali1 any doubts yet?
Please reopen if more feedback required, thanks!
Would having an emum helper to pull the enum configuration into a view be useful or is there a better way of doing this?