我的控制器上有这些代码,可以让用户将输入的值输入到文本框中:
$username = $this->request->data['employee_account']['username'];
$password = $this->request->data['employee_account']['password'];
我希望使用 cakePHP 代码实现这种查询:
"SELECT * FROM accounts WHERE username = '$username' AND password = '$password'";
我如何使用 find() 来做到这一点?