mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
"Updating Controller::render() to use App::import() for loading the view class
Corrected typo in basics.php loadView()" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6027 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
cd3fee384d
commit
e110032089
2 changed files with 2 additions and 2 deletions
|
@ -1162,7 +1162,7 @@ if (!function_exists('clone')) {
|
|||
* @deprecated
|
||||
* @see App::import('View', 'ModelName');
|
||||
*/
|
||||
function loadView($viewClass) {
|
||||
function loadView($name) {
|
||||
return App::import('View', $name);
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -650,7 +650,7 @@ class Controller extends Object {
|
|||
list($plugin, $viewClass) = explode('.', $viewClass);
|
||||
}
|
||||
$viewClass = $viewClass . 'View';
|
||||
loadView($this->view);
|
||||
App::import('View', $this->view);
|
||||
}
|
||||
|
||||
foreach ($this->components as $c) {
|
||||
|
|
Loading…
Add table
Reference in a new issue