app/code/local/Aoe/Layout/Controller/Model.php
public function viewAction()
    {
        $model = $this->loadModel();
        if (!$model->getId()) {
            $this->_forward('noroute');
            return;
        }

        $this->loadLayout();
        $this->renderLayout();
    }
public function viewAction()
    {
        $model = $this->loadModel();
        if (!$model->getId()) {
            $this->_forward('noroute');
            return;
        }

        $this->loadLayout();
        $this->renderLayout();
    }
public function viewAction ( ) { $ model = $ this -> loadModel ( ) ; if ( ! $ model -> getId ( ) ) { $ this -> _forward ( 'noroute' ) ; return ; } $ this -> loadLayout ( ) ; $ this -> renderLayout ( ) ; }
View existing record
View existing record