Example #1
0
 public function linkimageAction()
 {
     if ($this->_getParam('secuid', false)) {
         $this->_helper->layout->disableLayout();
         $form = new ImageLinkForm();
         $this->view->form = $form;
         $images = new Slides();
         $this->view->images = $images->getImageForLinks($this->_getParam('secuid'));
     } else {
         throw new Exception('No image id has been specified on the url string');
     }
 }
Example #2
0
 /** Link an image
  * @access public
  * @return mixed
  * @throws Pas_Exception_Param
  */
 public function linkimageAction()
 {
     if ($this->getParam('secuid', false)) {
         $this->_helper->layout->disableLayout();
         $form = new ImageLinkForm();
         $this->view->form = $form;
         $images = new Slides();
         $this->view->images = $images->getImageForLinks($this->getParam('secuid'));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }