public function parentAction() { $this->_helper->layout->disableLayout(); if ($this->getRequest()->isPost()) { $Data = $this->getRequest()->getPost(); if ($Data['album'] && $Data['page']) { Zwe_Model_Album::parentAlbum((int) $Data['album'], (int) $Data['page']); $this->view->message = "Album parent page changes successfully"; } } }
public function indexAction() { $IDAlbum = $this->_getParam('album'); if (!isset($IDAlbum)) { $this->_helper->redirector('index', 'gallery'); } $this->view->album = Zwe_Model_Album::getAlbumByID($IDAlbum); $this->view->uploadForm = new Admin_Form_Photo_Upload(); $this->view->uploadForm->getElement('album')->setValue($IDAlbum); $this->view->deleteForm = new Admin_Form_Photo_Delete(); $this->view->deleteForm->getElement('delete')->addMultiOptions($this->view->album->Photos); }
protected function specificPageInit() { $this->_albums = Zwe_Model_Album::getPageAlbums($this->IDPage); }