public function getAction()
    {
        $s = $this->_getSelect();
        if ($this->_loadColumns) {
            foreach ($this->_loadColumns as $c) {
                $s->expr($c);
            }
        }
        $s->whereId($this->_getParam('id'));
        $row = $this->_model->getRow($s);
        if (!$row) throw new Kwf_Exception_NotFound();
        $this->view->data = $this->_loadDataFromRow($row);
    }
public function getAction()
    {
        $s = $this->_getSelect();
        if ($this->_loadColumns) {
            foreach ($this->_loadColumns as $c) {
                $s->expr($c);
            }
        }
        $s->whereId($this->_getParam('id'));
        $row = $this->_model->getRow($s);
        if (!$row) throw new Kwf_Exception_NotFound();
        $this->view->data = $this->_loadDataFromRow($row);
    }
public function getAction ( ) { $ s = $ this -> _getSelect ( ) ; if ( $ this -> _loadColumns ) { foreach ( $ this -> _loadColumns as $ c ) { $ s -> expr ( $ c ) ; } } $ s -> whereId ( $ this -> _getParam ( 'id' ) ) ; $ row = $ this -> _model -> getRow ( $ s ) ; if ( ! $ row ) throw new Kwf_Exception_NotFound ( ) ; $ this -> view -> data = $ this -> _loadDataFromRow ( $ row ) ; }
Handle GET and return a specific resource item
Handle GET and return a specific resource item