dreamfly2016 2010-08-28 15:33
浏览 67
已采纳

CakePHP:身份验证前端和后端,它们可能在一起吗?

I'm developing a CakePHP 1.3 application which needs to login users backend and frontend.

On the backend, admins and others must login to edit pages and data.

On the frontend, users can login to see "private" pages.

I'm using CakePHP ACL/Auth to login backend users (but i dont'have so clear how it works).

What do you suggest? I was thinking to set frontend users as a particular "acl" group to see that pages.

  • 写回答

1条回答 默认 最新

  • dongweng9474 2010-08-28 16:43
    关注

    User admin routing.( http://book.cakephp.org/view/945/Routes-Configuration )

    This will allow you to create separate functionality for ADMINS and USERS. You can even create additional user types and create routes for them too.

    ACL is a bit difficult to understand and does not make sense for all situations. This blog may be of some use to help you get started: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comsol稳态求解器 找不到解,奇异矩阵有1个空方程返回的解不收敛。没有返回所有参数步长;pid控制
  • ¥15 怎么让wx群机器人发送音乐
  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功