From 1079889d9fcdd7a110088e1c3c875c9342eacbda Mon Sep 17 00:00:00 2001 From: Niles Date: Sun, 12 Jun 2011 11:54:47 -0400 Subject: [PATCH 1/2] fix missing uses command in bake template. fixes #1770. --- lib/Cake/Console/Templates/skel/Controller/AppController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Console/Templates/skel/Controller/AppController.php b/lib/Cake/Console/Templates/skel/Controller/AppController.php index 31d07e77e..dfbc8e24c 100644 --- a/lib/Cake/Console/Templates/skel/Controller/AppController.php +++ b/lib/Cake/Console/Templates/skel/Controller/AppController.php @@ -20,6 +20,8 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +App::uses('Controller', 'Controller'); + /** * Application Controller * From d5012f0e331578b72262cc05519e90df76c64436 Mon Sep 17 00:00:00 2001 From: Niles Date: Mon, 13 Jun 2011 10:18:59 -0400 Subject: [PATCH 2/2] add required uses to template. --- lib/Cake/Console/Templates/skel/Model/AppModel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Console/Templates/skel/Model/AppModel.php b/lib/Cake/Console/Templates/skel/Model/AppModel.php index a8915e7c9..74843bca0 100644 --- a/lib/Cake/Console/Templates/skel/Model/AppModel.php +++ b/lib/Cake/Console/Templates/skel/Model/AppModel.php @@ -20,6 +20,8 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +App::uses('Model', 'Model'); + /** * Application model for Cake. *