# data[].attributes.body
https://cakephp.org/

https://github.com/cakephp/cakephp/releases

# data[].attributes.body
open source web application framework

Model-View-Controller (MVC)

PHP

MIT License
Convention over configuration
Active Record

Association Data Mapping

Front Controller.

# data[].attributes.body
1. http://tecadmin.net/setup-cakephp-3-on-linux/#

2. http://www.phpcmsframework.com/2014/11/steps-to-install-cakephp-on-ubuntu-1404.html

3. https://rupinderjeetkaur.wordpress.com/2014/08/25/install-cakephp-in-ubuntu-14-04/

4. http://askubuntu.com/questions/628938/how-to-install-cakephp-in-ubuntu-14-04

# data[].attributes.body
# 1. Install LAMP Server (Linux, Apache, MySQL and PHP)
> apt-get install apache2 mysql-server php5 php5-mysql php5-mbstring php5-intl
# 2. Install Composer
# cakephp is using composer for managing dependencies.
> curl -sS https://getcomposer.org/installer | php
> mv composer.phar /usr/local/bin/composer
> chmod +x /usr/local/bin/composer

# 3. Create CakePHP 3 Application
# Let’s create your Cakephp project named “MyApp” using composer

> composer create-project --prefer-dist cakephp/app MyApp
# set the proper permission for your project files.

> chown -R  www-data:www-data  MyApp
> chmod -R  755  MyApp

# 4. Setup Database for CakePHP

> mysql -u root -p
Enter password:

mysql> CREATE DATABASE mydb;
mysql> GRANT ALL ON mydb.* to 'myuser'@'localhost' IDENTIFIED BY '_password_';
mysql> FLUSH PRIVILEGES;
mysql> quit

# edit config/app.php configuration file and search for your database setting

    'Datasources' => [
        'default' => [
            'className' => 'Cake\Database\Connection',
            'driver' => 'Cake\Database\Driver\Mysql',
            'persistent' => false,
            'host' => 'localhost',
            //'port' => 'nonstandard_port_number',
            'username' => 'myuser',
            'password' => '_password_',
            'database' => 'mydb',
            'encoding' => 'utf8',
            'timezone' => 'UTC',
            'cacheMetadata' => true,

# 5. Setup Web Server Virtual Host

# creating virtual host in Apache. Edit your Apache configuration file

<VirtualHost *:80>
    ServerAdmin webmaster@tecadmin.net
    ServerName cakephp.tecadmin.net

    DocumentRoot /var/www/html/MyApp
    <Directory /var/www/html/MyApp>
          Allowoverride All
    </Directory>
</VirtualHost>

# 6. Verify Setup
> service apache2 restart
# access website with configure ServerName in web browser

# data[].attributes.body
http://florian-kraemer.net/2015/02/cakephp3-when-to-use-elements-helpers-or-view-cells/

http://josediazgonzalez.com/2014/03/20/view-cells/

http://www.sanisoft.com/blog/2014/09/15/view-cell-cakephp-3-quick-start/

# data[].attributes.body
$ bin/cake bake

Welcome to CakePHP v3.0.0 Console
---------------------------------------------------------------
App : src
Path: /var/www/cakephp.dev/src/
---------------------------------------------------------------
The following commands can be used to generate skeleton code for your application.

Available bake commands:

- all
- behavior
- cell
- component
- controller
- fixture
- form
- helper
- model
- plugin
- shell
- template
- test

$ bin/cake bake all events