Browse Source

Removing hardcoded helpers from Controller and PagesController class since they are now lazy loaded

Jose Lorenzo Rodriguez 14 years ago
parent
commit
f349c9e34c
2 changed files with 1 additions and 7 deletions
  1. 0 6
      app/Controller/PagesController.php
  2. 1 1
      lib/Cake/Controller/Controller.php

+ 0 - 6
app/Controller/PagesController.php

@@ -38,12 +38,6 @@ class PagesController extends AppController {
  */
 	public $name = 'Pages';
 
-/**
- * Default helper
- *
- * @var array
- */
-	public $helpers = array('Html', 'Session');
 
 /**
  * This controller does not use a model

+ 1 - 1
lib/Cake/Controller/Controller.php

@@ -95,7 +95,7 @@ class Controller extends Object implements CakeEventListener {
  * @var mixed A single name as a string or a list of names as an array.
  * @link http://book.cakephp.org/2.0/en/controllers.html#components-helpers-and-uses
  */
-	public $helpers = array('Session', 'Html', 'Form');
+	public $helpers = array();
 
 /**
  * An instance of a CakeRequest object that contains information about the current request.