Bake Console

CakePHP’s bake console is another effort to get you up and running in CakePHP– fast. The bake console can create any of CakePHP’s basic ingredients: models,behaviors, views, helpers, controllers, components, test cases, fixtures and plugins.And we aren’t just talking skeleton classes: Bake can create a fully functionalapplication in just a few minutes. In fact, Bake is a natural step to take oncean application has been scaffolded.

Installation

Before trying to use or extend bake, make sure it is installed in yourapplication. Bake is provided as a plugin that you can install with Composer:

  1. composer require --dev cakephp/bake:~2.0

The above will install bake as a development dependency. This means that it willnot be installed when you do production deployments.

When using the Twig templates make sure you are loading theWyriHaximus/TwigView plugin with its bootstrap. You can also omit itcompletely which then makes Bake plugin load this plugin on demand.