public function tetatestAction() { try { $model = new TetaEmployeerAccounts(); $testEmploy = $model->fetchAll(null, null, 1); $tetaDb = new TetaEmployeerImport(); $import = $tetaDb->fetchAll($tetaDb->select()->limit(1)); $this->view->status = True; } catch (Exception $exc) { $this->view->status = FALSE; $this->view->error = $exc->getMessage(); } $this->renderScript('system/test.phtml'); }