I'm creating a function in controller UsersController
, this function is for users who forget the password. When I try to open view
, it returns an error that the function does not exist.
The structure looks like this:
- view
esqueci_senha.ctp
- function
function esqueciSenha()
To open the view I do this:
<a href="<?php echo $this->Html->url("/Users/esqueci_senha")?>"><i class="glyphicon glyphicon-question-sign"></i> Esqueci minha senha</a>'
The error:
Error: The action forgot_password is not defined in controller UsersController
Error: Create UsersController :: forgot_password () in file: app \ Controller \ UsersController.php.
class UsersController extends AppController {
public function forgot_password () {
}
}
How to solve?