maiconpinto/cakephp-blog-tutorial
Composer 安装命令:
composer create-project maiconpinto/cakephp-blog-tutorial
包简介
CakePHP Blog Tutorial
README 文档
README
This project is the result of the tutorial step-by-step Official CakePHP website. It is a way to practice and study the new version of CakePHP 3.x.
Basically CTRL+C CTR+V of site, with some minor changes, such as adding the Migration.
Installation
composer create-project maiconpinto/cakephp-blog-tutorial
OR
composer create-project --prefer-dist maiconpinto/cakephp-blog-tutorial [app_name]
Learn to use the composer, it is an essential tool. Official website and if you want I have a friend who provided free course composer in practice, the Erik Figueiredo of website webdevbr.com.br
Configuration
mv config/app.default.php config/app.php
Edit file.
//config/app.php 'Datasources' => [ 'default' => [ 'className' => 'Cake\Database\Connection', 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'host' => 'localhost', /** * CakePHP will use the default DB port based on the driver selected * MySQL on MAMP uses port 8889, MAMP users will want to uncomment * the following line and set the port accordingly */ //'port' => 'non_standard_port_number', 'username' => 'YOUR_USERNAME', 'password' => 'YOUR_SECRET', 'database' => 'YOUR_DATABASE', 'encoding' => 'utf8', 'timezone' => 'UTC', 'flags' => [], 'cacheMetadata' => true, 'log' => false,
Migrations
After installing and configuring the database, let's run the migration to create the tables.
bin/cake migrations migrate
Useful links
统计信息
- 总下载量: 99
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-14