dongxie3352 2013-01-03 08:25
浏览 35
已采纳

Zend Framework 2 - ZFCUser模块安装

I need an authentication module for my ZF2 project.

ZFCUser seems to be good and I installed it sucessfully. But now I'm a bit lost due to the lack of any further documentation (or I just don't know where to look for it).

1) I want to include ZFCUser-DoctrineORM but the readme says basically the name of the module and that's it. What do I have to do to get this working?

After trying for some time I found the login page under the URL /user/ and a code snippet which shows how to include the form on another page.

2) But how do I eg make login required for all my other pages or modules?

  • 写回答

2条回答 默认 最新

  • dtrgqjcd877528 2013-01-03 10:49
    关注

    Question 1

    Alright, figured it out now... it's actually pretty easy!

    composer.json

    "zf-commons/zfc-user-doctrine-orm": "dev-master"
    

    Run

    php composer.phar update
    

    Add app under application.config

    'ZfcUserDoctrineORM'
    

    Run Doctrine CLI

    doctrine-module orm:schema-tool:update --force
    

    Question 2

    Here are the options for checking the login state.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 安装 opencv4nodejs 报错
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥15 复杂网络,变滞后传递熵,FDA
  • ¥20 csv格式数据集预处理及模型选择
  • ¥15 部分网页页面无法显示!