vitorbarros/vmb-zf2-module-login
Composer 安装命令:
composer require vitorbarros/vmb-zf2-module-login
包简介
Módulo básico de login utilizando o zend2 e doctrine
README 文档
README
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
php composer.phar require vitorbarros/vmb-zf2-module-login
Then add DoctrineModule, DoctrineORMModule, DoctrineDataFixtureModule and VMBLogin to your config/application.config.php and create directory
data/DoctrineORMModule/Proxy and make sure your application has write access to it.
Installation without composer is not officially supported and requires you to manually install all dependencies
that are listed in composer.json
Configuration options
To create initial data to test the module configure the database connection as following
<?php return array( 'doctrine' => array( 'connection' => array( // default connection name 'orm_default' => array( 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'user' => 'user', 'password' => 'password', 'dbname' => 'dbnae', ) ) ) ), );
Command Line
Access the Doctrine command line as following
##Create table
./vendor/bin/doctrine-module orm:schema-tool:create
##Import
./vendor/bin/doctrine-module data-fixture:import
##Test
Access in your browser www.yourdomain/login
try authenticate with fallowing credentians
username: admin
password: admin
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-02-15