protected function _viewPath()
    {
        $viewPath = $this->name;
        if ($this->request->getParam('prefix')) {
            $prefixes = array_map(
                'Cake\Utility\Inflector::camelize',
                explode('/', $this->request->getParam('prefix'))
            );
            $viewPath = implode(DIRECTORY_SEPARATOR, $prefixes) . DIRECTORY_SEPARATOR . $viewPath;
        }

        return $viewPath;
    }
protected function _viewPath()
    {
        $viewPath = $this->name;
        if ($this->request->getParam('prefix')) {
            $prefixes = array_map(
                'Cake\Utility\Inflector::camelize',
                explode('/', $this->request->getParam('prefix'))
            );
            $viewPath = implode(DIRECTORY_SEPARATOR, $prefixes) . DIRECTORY_SEPARATOR . $viewPath;
        }

        return $viewPath;
    }
protected function _viewPath ( ) { $ viewPath = $ this -> name ; if ( $ this -> request -> getParam ( 'prefix' ) ) { $ prefixes = array_map ( 'Cake\Utility\Inflector::camelize' , explode ( '/' , $ this -> request -> getParam ( 'prefix' ) ) ) ; $ viewPath = implode ( DIRECTORY_SEPARATOR , $ prefixes ) . DIRECTORY_SEPARATOR . $ viewPath ; } return $ viewPath ; }
Get the viewPath based on controller name and request prefix.

@return string
Get the viewPath based on controller name and request prefix .