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条)

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题