Fixing typo in Controller::_getViewObject doc block and changing the view class comparison from != to !==

This commit is contained in:
Florian Krämer 2013-01-25 11:30:04 +01:00
parent 8d9acd9a8a
commit d242081067

View file

@ -1217,13 +1217,13 @@ class Controller extends Object implements CakeEventListener {
}
/**
* Constructs the view class based on the controllers properties
* Constructs the view class based on the controller properties
*
* @return View
*/
protected function _getViewObject() {
$viewClass = $this->viewClass;
if ($this->viewClass != 'View') {
if ($this->viewClass !== 'View') {
list($plugin, $viewClass) = pluginSplit($viewClass, true);
$viewClass = $viewClass . 'View';
App::uses($viewClass, $plugin . 'View');