laiz/laiz-sample-task
Composer 安装命令:
composer require laiz/laiz-sample-task
包简介
Sample Application of Laiz Web Framework
关键字:
README 文档
README
Laiz Framework Application Sample.
Framework Setup
composer.phar create-project laiz/laiz-sample-task laiz-sample-task
cd laiz-sample-task
mkdir cache
chmod o+w cache
Apache Virtual Host Configuration
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /home/to/path/laiz-sample-task/public
SetEnv APPLICATION_ENV "development"
#SetEnv APPLICATION_ENV "production"
<Directory /home/to/path/laiz-sample-task/public>
DirectoryIndex index.html
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Setup Database
createuser laiz-sample -P
# Enter password: secret
createdb -O laiz-sample laiz-sample-task
psql -h localhost -U laiz-sample laiz-sample-task < db/version0.sql
View in Browser
Access to localhost. Login id is user1 and password is my-password.
Thereis in config/develop_auth.ini file.
Change Authentication Adapter to Db
-
Change from IniMd5 to Db in config/di.ini
-
run vender/bin/migration.php
-
Change Laiz/Sample/Task/Page/Session#add method
$result = $auth->login($this->id, md5($this->password));
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-17