public function getView()
	{
	    if (!$this->has('view')) {
	        // first load current module, then overwrite common view config.
	        $configs = Config::get('views', $this->getName(), true);
	        
	        if ($configs) {
	            $client  = ClientType::detectClientType();
	            if ($client === ClientType::PC) {
	                $config = isset($configs['pc']) ? $configs['pc'] : [];
	            } else {
	                $config = isset($configs[$client]) ? $configs[$client] : (isset($configs['mobile']) ? $configs['mobile'] : (isset($configs['pc']) ? $configs['pc'] : []));
	            }
	        } else {
	            $config = Config::get('view', $this->getName(), true);
	        }
	        
	        if (!isset($config['templatePath'])) {
	            $config['templatePath'] = $this->basePath . 'view';
	        }
	        if (!isset($config['compiledPath'])) {
	            $config['compiledPath'] = rtrim(Config::getStoragePath(), '/') . '/app/' . $this->getName() . '/view';
	            $config['compiledPath'] = str_replace('//', '/', $config['compiledPath']);
	        }
	        if (!isset($config['htmlPath'])) {
	            $config['htmlPath'] = rtrim(Config::getWebRootPath(), '/') . '/html/' . $this->getName();
	            $config['htmlPath'] = str_replace('//', '/', $config['htmlPath']);
	        }
	        
	        $object = new View($config);
	        $this->set('view', $object);
	    }
	    
	    return $this->get('view');
	}