Example #1
0
 /**
  * Default action presents list of existing accounts.
  */
 public function indexAction()
 {
     $accounts = Opus_Account::getAll();
     if (empty($accounts)) {
         $this->view->title = $this->view->translate('admin_account_index');
         return $this->renderScript('account/none.phtml');
     }
     $this->view->accounts = array();
     foreach ($accounts as $account) {
         $this->view->accounts[$account->getId()] = $account;
     }
 }