public function browseAction() { $page_id = $this->_page->getId(); $lng = $_SESSION['System']['lng']; if ($this->_getParam('json', 0) == 1) { $proxy = new SxCms_Page_Picture_Proxy(); $pictures = $proxy->getAllByPage($page_id, 0, $lng); $this->_helper->layout()->disableLayout(); $this->view->result = Zend_Json::encode(array('images' => $pictures)); $this->render('result'); } else { $this->view->page_id = $page_id; } }
public function getByPageId($page_id, $lng = 'nl') { $proxy = new SxCms_Page_Picture_Proxy(); return $proxy->getAllByPage($page_id, 0, $lng); }