Hi,
Since this morning I’m fighting that problem with might be obvious for everybody beside me.
I made a mail change form and for whatever reason, its controller is never called…
<form class="form-horizontal">
<?php echo $this->Form->create(null, ['url' => ['controller' => 'Profiles', 'action' => 'changemail']]); ?>
<div class="col-md-6">
<fieldset>
<div class="form-group">
<label for="inputEmail" class="col-sm-2 control-label"> New Email</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="inputEmail" placeholder="Email">
</div>
</div>
</fieldset>
<?php echo $this->Form->button(__('Submit')); ?>
<?= $this->Form->end() ?>
</div>
</form>
and the associated controller resumed to its simplest expression: (ProfilesController.php)
public function changemail()
{
Debugger::dump(‘here…’);
}
I have no idea why it doesn’t work.
Thanks for your help!