Skip to content
Permalink
Browse files

Including the FlashComponent by default in the controller when baking.

  • Loading branch information...
mattmemmesheimer committed Aug 16, 2015
1 parent 0df7bcd commit 604cb0e48bda36547ddad969fa391ded5fab3705
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/Command/Task/ControllerTask.php
@@ -384,9 +384,9 @@ public function doHelpers() {
* @return array Components the user wants to use.
*/
public function doComponents() {
$components = array('Paginator');
$components = array('Paginator', 'Flash');
return array_merge($components, $this->_doPropertyChoices(
__d('cake_console', "Would you like this controller to use other components\nbesides PaginatorComponent?"),
__d('cake_console', "Would you like this controller to use other components\nbesides PaginatorComponent and FlashComponent?"),
__d('cake_console', "Please provide a comma separated list of the component names you'd like to use.\nExample: 'Acl, Security, RequestHandler'")
));
}

0 comments on commit 604cb0e

Please sign in to comment.
You can’t perform that action at this time.