求救cakePHP 验证组件Auth的用法

lengyuqing523 2008-12-06 06:23:45
以下是我在网上搜寻到的用法,但是不知怎么使用~这个验证的机制是什么
$this->Auth->fields = array('username' => 'email', 'password' => 'password');
Auth->fields这个方法的两个参数都是什么意思啊,是用来在什么时候做怎样的验证来使用的,使用的时候需要注意哪些问题。
还有,哪里有关于Auth的函数的详细说明文档吗?

$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'myprofile');
$this->Auth->logoutRedirect = '/';
$this->Auth->loginError = 'Invalid e-mail / password combination. Please try again';
$this->Auth->authorize = 'controller';
...全文
210 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
iasky 2008-12-06
  • 打赏
  • 举报
回复
http://book.cakephp.org/view/172/Authentication

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧