maiconpinto / cakephp-blog-tutorial
CakePHP Blog Tutorial
Installs: 98
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.5.9
- cakephp/cakephp: ~3.2
- cakephp/migrations: ~1.0
- cakephp/plugin-installer: *
- mobiledetect/mobiledetectlib: 2.*
Requires (Dev)
- cakephp/bake: ~1.1
- cakephp/debug_kit: ~3.2
- psy/psysh: @stable
Suggests
- cakephp/cakephp-codesniffer: Allows to check the code against the coding standards used in CakePHP.
- phpunit/phpunit: Allows automated tests to be run without system-wide install.
This package is not auto-updated.
Last update: 2024-12-19 01:38:40 UTC
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