public function indexAction()
    {
        $this->view->data = array();
        $s = $this->_getSelectIndex();
        if ($this->_loadColumns) {
            foreach ($this->_loadColumns as $c) {
                $s->expr($c);
            }
        }
        foreach ($this->_model->getRows($s) as $row) {
            $this->view->data[] = $this->_loadDataFromRow($row);
        }
        $this->view->total = $this->_model->countRows($s);
    }
public function indexAction()
    {
        $this->view->data = array();
        $s = $this->_getSelectIndex();
        if ($this->_loadColumns) {
            foreach ($this->_loadColumns as $c) {
                $s->expr($c);
            }
        }
        foreach ($this->_model->getRows($s) as $row) {
            $this->view->data[] = $this->_loadDataFromRow($row);
        }
        $this->view->total = $this->_model->countRows($s);
    }
public function indexAction ( ) { $ this -> view -> data = array ( ) ; $ s = $ this -> _getSelectIndex ( ) ; if ( $ this -> _loadColumns ) { foreach ( $ this -> _loadColumns as $ c ) { $ s -> expr ( $ c ) ; } } foreach ( $ this -> _model -> getRows ( $ s ) as $ row ) { $ this -> view -> data [ ] = $ this -> _loadDataFromRow ( $ row ) ; } $ this -> view -> total = $ this -> _model -> countRows ( $ s ) ; }
Handle GET and return a list of resources
Handle GET and return a list of resources