No context provider found for value of type string
. Use null
as 1st argument of FormHelper::create() to create a context-less form.
the form is
<?php echo $this->Form->create('User', ['url' => ['action' => 'login']]); ?>
<?php echo $this->Form->input('email', ['class' => 'form-control', 'autofocus' => 'autofocus']); ?>
<br />
<?php echo $this->Form->input('password', ['class' => 'form-control']); ?>
<br />
<?php echo $this->Form->button('LOG IN', ['class' => 'btn btn-secondary']); ?>
<?php echo $this->Form->end(); ?>
where I am wrong? what I am missing?