private function loadView($sView, $aData = array())
    {
        $oView = Factory::service('View');
        $sFile = $this->oSkin->path . 'views/' . $sView;

        if (is_file($sFile . '.php')) {

            $oView->load($sFile, $aData);

        } elseif (!empty($this->oSkinParent)) {

            $sFile = $this->oSkinParent->path . 'views/' . $sView;

            if (is_file($sFile . '.php')) {
                $oView->load($sFile, $aData);
            } else {
                throw new NailsException('Failed to load blog view "' . $sView . '"');
            }

        } else {
            throw new NailsException('Failed to load blog view "' . $sView . '"');
        }
    }
private function loadView($sView, $aData = array())
    {
        $oView = Factory::service('View');
        $sFile = $this->oSkin->path . 'views/' . $sView;

        if (is_file($sFile . '.php')) {

            $oView->load($sFile, $aData);

        } elseif (!empty($this->oSkinParent)) {

            $sFile = $this->oSkinParent->path . 'views/' . $sView;

            if (is_file($sFile . '.php')) {
                $oView->load($sFile, $aData);
            } else {
                throw new NailsException('Failed to load blog view "' . $sView . '"');
            }

        } else {
            throw new NailsException('Failed to load blog view "' . $sView . '"');
        }
    }
private function loadView ( $ sView , $ aData = array ( ) ) { $ oView = Factory :: service ( 'View' ) ; $ sFile = $ this -> oSkin -> path . 'views/' . $ sView ; if ( is_file ( $ sFile . '.php' ) ) { $ oView -> load ( $ sFile , $ aData ) ; } elseif ( ! empty ( $ this -> oSkinParent ) ) { $ sFile = $ this -> oSkinParent -> path . 'views/' . $ sView ; if ( is_file ( $ sFile . '.php' ) ) { $ oView -> load ( $ sFile , $ aData ) ; } else { throw new NailsException ( 'Failed to load blog view "' . $ sView . '"' ) ; } } else { throw new NailsException ( 'Failed to load blog view "' . $ sView . '"' ) ; } }
Loads a view from the skin, falls back tot he parent view if there is one.
@param  string $sView The view to load
@return void
Loads a view from the skin falls back tot he parent view if there is one .