protected function getView()
    {
        $ret = "";
        if (null !== $this->getRequest()) {
            $ret = $this->getRequest()->attributes->get("_view", "");
        }

        return $ret;
    }
protected function getView()
    {
        $ret = "";
        if (null !== $this->getRequest()) {
            $ret = $this->getRequest()->attributes->get("_view", "");
        }

        return $ret;
    }
protected function getView ( ) { $ ret = "" ; if ( null !== $ this -> getRequest ( ) ) { $ ret = $ this -> getRequest ( ) -> attributes -> get ( "_view" , "" ) ; } return $ ret ; }
Get the view argument for the request.

It allows you to identify the page currently displayed. eg: index, category, ...

@return string the current view
Get the view argument for the request .