Fixing some errors in loading view classes

This commit is contained in:
José Lorenzo Rodríguez 2010-12-04 22:06:53 -04:30
parent e425b68a86
commit 377cbc546b
4 changed files with 4 additions and 4 deletions

View file

@ -609,7 +609,7 @@ class App {
}
if (empty(self::$__paths)) {
//self::$__paths = Cache::read('dir_map', '_cake_core_');
self::$__paths = Cache::read('dir_map', '_cake_core_');
}
foreach (self::$search as $path) {

View file

@ -21,6 +21,8 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('Set', 'Utility');
/**
* Object class provides a few generic methods used in several subclasses.
*

View file

@ -96,9 +96,7 @@ class PaginatorHelper extends AppHelper {
$ajaxProvider = isset($settings['ajax']) ? $settings['ajax'] : 'Js';
$this->helpers[] = $ajaxProvider;
$this->_ajaxHelperClass = $ajaxProvider;
if (!class_exists($ajaxProvider . 'Helper')) {
App::import('Helper', $ajaxProvider);
}
App::uses($ajaxProvider . 'Helper', 'View/Helper');
$classname = $ajaxProvider . 'Helper';
if (!method_exists($classname, 'link')) {
throw new Exception(sprintf(