mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing some errors in loading view classes
This commit is contained in:
parent
e425b68a86
commit
377cbc546b
4 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue