source/Core/ShopControl.php
protected function _initializeViewObject($class, $function, $parameters = null, $viewsChain = null)
    {
        $classKey = Registry::getControllerClassNameResolver()->getIdByClassName($class);
        $classKey = !is_null($classKey) ? $classKey : $class; //fallback

        /** @var FrontendController $view */
        $view = oxNew($class);

        $view->setClassKey($classKey);
        $view->setFncName($function);
        $view->setViewParameters($parameters);

        \OxidEsales\Eshop\Core\Registry::getConfig()->setActiveView($view);

        $this->onViewCreation($view);

        $view->init();

        return $view;
    }
protected function _initializeViewObject($class, $function, $parameters = null, $viewsChain = null)
    {
        $classKey = Registry::getControllerClassNameResolver()->getIdByClassName($class);
        $classKey = !is_null($classKey) ? $classKey : $class; //fallback

        /** @var FrontendController $view */
        $view = oxNew($class);

        $view->setClassKey($classKey);
        $view->setFncName($function);
        $view->setViewParameters($parameters);

        \OxidEsales\Eshop\Core\Registry::getConfig()->setActiveView($view);

        $this->onViewCreation($view);

        $view->init();

        return $view;
    }
protected function _initializeViewObject ( $ class , $ function , $ parameters = null , $ viewsChain = null ) { $ classKey = Registry :: getControllerClassNameResolver ( ) -> getIdByClassName ( $ class ) ; $ classKey = ! is_null ( $ classKey ) ? $ classKey : $ class ; //fallback /** @var FrontendController $view */ $ view = oxNew ( $ class ) ; $ view -> setClassKey ( $ classKey ) ; $ view -> setFncName ( $ function ) ; $ view -> setViewParameters ( $ parameters ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> setActiveView ( $ view ) ; $ this -> onViewCreation ( $ view ) ; $ view -> init ( ) ; return $ view ; }
Initialize and return view object.

@param string $class      View class
@param string $function   Function name
@param array  $parameters Parameters array
@param array  $viewsChain Array of views names that should be initialized also

@return FrontendController
Initialize and return view object .