protected function renderGetViewScriptPath ($controllerOrActionNameDashed = NULL, $actionNameDashed = NULL) {
		$currentCtrlIsTopMostParent = $this->parentController === NULL;
		if ($this->viewScriptsPath !== NULL) {
			$resultPathItems = [$this->viewScriptsPath];
			if ($controllerOrActionNameDashed !== NULL) $resultPathItems[] = $controllerOrActionNameDashed;
			if ($actionNameDashed !== NULL) $resultPathItems[] = $actionNameDashed;
			return str_replace(['_', '\\'], '/', implode('/', $resultPathItems));
		}
		if ($actionNameDashed !== NULL) { // if action defined - take first argument controller
			$controllerNameDashed = $controllerOrActionNameDashed;
		} else { // if no action defined - we need to complete controller dashed name
			$toolClass = '';
			if ($currentCtrlIsTopMostParent) { // if controller is tom most one - take routed controller name
				$controllerNameDashed = $this->controllerName;
			} else {
				// if controller is child controller - translate class name
				// without default controllers directory into dashed name
				$ctrlsDefaultNamespace = $this->application->GetAppDir() . '\\' 
					. $this->application->GetControllersDir();
				$currentCtrlClassName = get_class($this);
				if (mb_strpos($currentCtrlClassName, $ctrlsDefaultNamespace) === 0)
					$currentCtrlClassName = mb_substr($currentCtrlClassName, mb_strlen($ctrlsDefaultNamespace) + 1);
				$currentCtrlClassName = str_replace('\\', '/', $currentCtrlClassName);
				$toolClass = $this->application->GetToolClass();
				$controllerNameDashed = $toolClass::GetDashedFromPascalCase($currentCtrlClassName);
			}
			if ($controllerOrActionNameDashed !== NULL) {
				$actionNameDashed = $controllerOrActionNameDashed;
			} else {
				if ($currentCtrlIsTopMostParent) {// if controller is top most parent - use routed action name
					$actionNameDashed = $this->actionName;
				} else {// if no action name defined - use default action name from core - usually `index`
					$defaultCtrlAction = $this->application->GetDefaultControllerAndActionNames();
					$actionNameDashed = $toolClass::GetDashedFromPascalCase($defaultCtrlAction[1]);
				}
			}
		}
		$controllerPath = str_replace(['_', '\\'], '/', $controllerNameDashed);
		return implode('/', [$controllerPath, $actionNameDashed]);
	}
protected function renderGetViewScriptPath ($controllerOrActionNameDashed = NULL, $actionNameDashed = NULL) {
		$currentCtrlIsTopMostParent = $this->parentController === NULL;
		if ($this->viewScriptsPath !== NULL) {
			$resultPathItems = [$this->viewScriptsPath];
			if ($controllerOrActionNameDashed !== NULL) $resultPathItems[] = $controllerOrActionNameDashed;
			if ($actionNameDashed !== NULL) $resultPathItems[] = $actionNameDashed;
			return str_replace(['_', '\\'], '/', implode('/', $resultPathItems));
		}
		if ($actionNameDashed !== NULL) { // if action defined - take first argument controller
			$controllerNameDashed = $controllerOrActionNameDashed;
		} else { // if no action defined - we need to complete controller dashed name
			$toolClass = '';
			if ($currentCtrlIsTopMostParent) { // if controller is tom most one - take routed controller name
				$controllerNameDashed = $this->controllerName;
			} else {
				// if controller is child controller - translate class name
				// without default controllers directory into dashed name
				$ctrlsDefaultNamespace = $this->application->GetAppDir() . '\\' 
					. $this->application->GetControllersDir();
				$currentCtrlClassName = get_class($this);
				if (mb_strpos($currentCtrlClassName, $ctrlsDefaultNamespace) === 0)
					$currentCtrlClassName = mb_substr($currentCtrlClassName, mb_strlen($ctrlsDefaultNamespace) + 1);
				$currentCtrlClassName = str_replace('\\', '/', $currentCtrlClassName);
				$toolClass = $this->application->GetToolClass();
				$controllerNameDashed = $toolClass::GetDashedFromPascalCase($currentCtrlClassName);
			}
			if ($controllerOrActionNameDashed !== NULL) {
				$actionNameDashed = $controllerOrActionNameDashed;
			} else {
				if ($currentCtrlIsTopMostParent) {// if controller is top most parent - use routed action name
					$actionNameDashed = $this->actionName;
				} else {// if no action name defined - use default action name from core - usually `index`
					$defaultCtrlAction = $this->application->GetDefaultControllerAndActionNames();
					$actionNameDashed = $toolClass::GetDashedFromPascalCase($defaultCtrlAction[1]);
				}
			}
		}
		$controllerPath = str_replace(['_', '\\'], '/', $controllerNameDashed);
		return implode('/', [$controllerPath, $actionNameDashed]);
	}
protected function renderGetViewScriptPath ( $ controllerOrActionNameDashed = NULL , $ actionNameDashed = NULL ) { $ currentCtrlIsTopMostParent = $ this -> parentController === NULL ; if ( $ this -> viewScriptsPath !== NULL ) { $ resultPathItems = [ $ this -> viewScriptsPath ] ; if ( $ controllerOrActionNameDashed !== NULL ) $ resultPathItems [ ] = $ controllerOrActionNameDashed ; if ( $ actionNameDashed !== NULL ) $ resultPathItems [ ] = $ actionNameDashed ; return str_replace ( [ '_' , '\\' ] , '/' , implode ( '/' , $ resultPathItems ) ) ; } if ( $ actionNameDashed !== NULL ) { // if action defined - take first argument controller $ controllerNameDashed = $ controllerOrActionNameDashed ; } else { // if no action defined - we need to complete controller dashed name $ toolClass = '' ; if ( $ currentCtrlIsTopMostParent ) { // if controller is tom most one - take routed controller name $ controllerNameDashed = $ this -> controllerName ; } else { // if controller is child controller - translate class name // without default controllers directory into dashed name $ ctrlsDefaultNamespace = $ this -> application -> GetAppDir ( ) . '\\' . $ this -> application -> GetControllersDir ( ) ; $ currentCtrlClassName = get_class ( $ this ) ; if ( mb_strpos ( $ currentCtrlClassName , $ ctrlsDefaultNamespace ) === 0 ) $ currentCtrlClassName = mb_substr ( $ currentCtrlClassName , mb_strlen ( $ ctrlsDefaultNamespace ) + 1 ) ; $ currentCtrlClassName = str_replace ( '\\' , '/' , $ currentCtrlClassName ) ; $ toolClass = $ this -> application -> GetToolClass ( ) ; $ controllerNameDashed = $ toolClass :: GetDashedFromPascalCase ( $ currentCtrlClassName ) ; } if ( $ controllerOrActionNameDashed !== NULL ) { $ actionNameDashed = $ controllerOrActionNameDashed ; } else { if ( $ currentCtrlIsTopMostParent ) { // if controller is top most parent - use routed action name $ actionNameDashed = $ this -> actionName ; } else { // if no action name defined - use default action name from core - usually `index` $ defaultCtrlAction = $ this -> application -> GetDefaultControllerAndActionNames ( ) ; $ actionNameDashed = $ toolClass :: GetDashedFromPascalCase ( $ defaultCtrlAction [ 1 ] ) ; } } } $ controllerPath = str_replace ( [ '_' , '\\' ] , '/' , $ controllerNameDashed ) ; return implode ( '/' , [ $ controllerPath , $ actionNameDashed ] ) ; }
Complete view script path by given controller and action or only by given action rendering arguments.
@param string $controllerOrActionNameDashed
@param string $actionNameDashed
@return string
Complete view script path by given controller and action or only by given action rendering arguments .