Example #1
0
 /**
  * Return the views output
  *
  * @return string   The output of the view
  */
 public function display()
 {
     $item = $this->getModel()->getItem();
     $files = array();
     $images = array();
     if (!$item->isNew()) {
         $files = $this->getService('com://admin/portfolio.model.files')->work($item->id)->getList();
         $images = $this->getService('com://admin/portfolio.model.images')->work($item->id)->getList();
     }
     $this->assign('files', $files);
     $this->assign('images', $images);
     return parent::display();
 }
Example #2
0
 public function display()
 {
     $item = $this->getModel()->getItem();
     $this->assign('works', $this->getService('com://admin/portfolio.model.works')->person($item->id)->getList());
     return parent::display();
 }