framework/web/CTheme.php
public function getViewFile($controller,$viewName)
	{
		$moduleViewPath=$this->getViewPath();
		if(($module=$controller->getModule())!==null)
			$moduleViewPath.='/'.$module->getId();
		return $controller->resolveViewFile($viewName,$this->getViewPath().'/'.$controller->getUniqueId(),$this->getViewPath(),$moduleViewPath);
	}
public function getViewFile($controller,$viewName)
	{
		$moduleViewPath=$this->getViewPath();
		if(($module=$controller->getModule())!==null)
			$moduleViewPath.='/'.$module->getId();
		return $controller->resolveViewFile($viewName,$this->getViewPath().'/'.$controller->getUniqueId(),$this->getViewPath(),$moduleViewPath);
	}
public function getViewFile ( $ controller , $ viewName ) { $ moduleViewPath = $ this -> getViewPath ( ) ; if ( ( $ module = $ controller -> getModule ( ) ) !== null ) $ moduleViewPath .= '/' . $ module -> getId ( ) ; return $ controller -> resolveViewFile ( $ viewName , $ this -> getViewPath ( ) . '/' . $ controller -> getUniqueId ( ) , $ this -> getViewPath ( ) , $ moduleViewPath ) ; }
Finds the view file for the specified controller's view.
@param CController $controller the controller
@param string $viewName the view name
@return string the view file path. False if the file does not exist.
Finds the view file for the specified controller s view .