Fixing the Js engine helpers

This commit is contained in:
José Lorenzo Rodríguez 2011-02-14 00:19:06 -04:30
parent 4938ac2749
commit 227ed6ef27
3 changed files with 3 additions and 1 deletions

View file

@ -74,7 +74,7 @@ abstract class JsBaseEngineHelper extends AppHelper {
* Constructor.
*
*/
function __construct() {
function __construct($View, $settings = array()) {
parent::__construct($View, $settings);
$this->useNative = function_exists('json_encode');
}

View file

@ -21,6 +21,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('View', 'View');
App::uses('HtmlHelper', 'View/Helper');
App::uses('JsHelper', 'View/Helper');
App::uses('MootoolsEngineHelper', 'View/Helper');

View file

@ -19,6 +19,7 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('View', 'View');
App::uses('HtmlHelper', 'View/Helper');
App::uses('JsHelper', 'View/Helper');
App::uses('PrototypeEngineHelper', 'View/Helper');