public function getControllerSubPath()
    {
        $subPath = '';
        $controllerNamespace = $this->getControllerNamespace();
        if (strpos($controllerNamespace, Yii::getApp()->controllerNamespace) === 0) {
            $subPath = substr($controllerNamespace, strlen(Yii::getApp()->controllerNamespace));
            $subPath = ($subPath !== '') ? str_replace('\\', '/', substr($subPath, 1)) . '/' : '';
        }
        return $subPath;
    }
public function getControllerSubPath()
    {
        $subPath = '';
        $controllerNamespace = $this->getControllerNamespace();
        if (strpos($controllerNamespace, Yii::getApp()->controllerNamespace) === 0) {
            $subPath = substr($controllerNamespace, strlen(Yii::getApp()->controllerNamespace));
            $subPath = ($subPath !== '') ? str_replace('\\', '/', substr($subPath, 1)) . '/' : '';
        }
        return $subPath;
    }
public function getControllerSubPath ( ) { $ subPath = '' ; $ controllerNamespace = $ this -> getControllerNamespace ( ) ; if ( strpos ( $ controllerNamespace , Yii :: getApp ( ) -> controllerNamespace ) === 0 ) { $ subPath = substr ( $ controllerNamespace , strlen ( Yii :: getApp ( ) -> controllerNamespace ) ) ; $ subPath = ( $ subPath !== '' ) ? str_replace ( '\\' , '/' , substr ( $ subPath , 1 ) ) . '/' : '' ; } return $ subPath ; }
This method will return sub path for controller if it
is located in subdirectory of application controllers dir
@see https://github.com/yiisoft/yii2-gii/issues/182
@since 2.0.6
@return string the controller sub path
This method will return sub path for controller if it is located in subdirectory of application controllers dir