Example #1
0
 /**
  * Display imports
  *
  * @return  void
  */
 public function displayTask()
 {
     // get all imports from archive
     $archive = Models\Import\Archive::getInstance();
     $imports = $archive->imports('list', array('state' => array(1), 'orderby' => 'created_at DESC'));
     // Output the HTML
     $this->view->set('imports', $imports)->setLayout('display')->display();
 }
Example #2
0
 /**
  * Display imports
  *
  * @return  void
  */
 public function displayTask()
 {
     // Set any errors
     foreach ($this->getErrors() as $error) {
         $this->view->setError($error);
     }
     // get all imports from archive
     $importArchive = Models\Import\Archive::getInstance();
     $imports = $importArchive->imports('list', array('state' => array(1), 'orderby' => 'created_at DESC'));
     // pass vars to view
     $this->view->imports = $imports;
     // Output the HTML
     $this->view->setLayout('display')->display();
 }