"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:
phpnut 2007-11-19 16:39:14 +00:00
parent cd3fee384d
commit e110032089
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
/**

View file

@ -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) {