fuzzyma/contao-eloquent-example-project-bundle
Composer 安装命令:
composer require fuzzyma/contao-eloquent-example-project-bundle
包简介
Bundle for the contao-eloquent-example-project which shows the eloquent features brought to you by the fuzzyma/contao-eloquent-bundle
README 文档
README
Bundle for the fuzzyma/contao-eloquent-example-project which shows the eloquent features brought to you by the fuzzyma/contao-eloquent-bundle
Installation
If you don't want to do this manually you can just create a project with:
composer create-project fuzzyma/contao-eloquent-example-project exampleProject app/console contao:setup
If not:
Step 1: Install
composer require fuzzyma/contao-eloquent-example-project-bundle
Step 2: Register Bundles
Add this three lines into your AppKernel.php
new WouterJ\EloquentBundle\WouterJEloquentBundle(), new Fuzzyma\Contao\EloquentBundle\ContaoEloquentBundle(), new Fuzzyma\Contao\EloquentExampleProjectBundle\ContaoEloquentExampleProjectBundle(),
Step 3: Configure
Add this to your config:
wouterj_eloquent: connections: default: database: "%database_name%" driver: mysql host: "%database_host%" username: "%database_user%" password: "%database_password%" charset: utf8 collation: utf8_unicode_ci prefix: 'tl_' default_connection: default eloquent: true aliases: false
Step 4: Update database
Open your install tool and run a database update. You can also do that by installing the fuzzyma/contao-database-commands-bundle.
Now you are free to test the new eloquent features!
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-11