I tried to change the label of a Submit
button with no luck:
<?= $this->Form->button(__('Submit'), array('name' => 'Create')) ?>
How I can change it?
Advertisement
Answer
Just change the text from Submit to Create:
<?= $this->Form->button(__('Create')) ?>
It will generate a button that looks like below: