Ejemplo n.º 1
0
 public function indexAction()
 {
     $this->view->languages = $this->repository->getLanguages();
     $this->view->actions = array(array('label' => getGS('Add new Language'), 'module' => 'admin', 'controller' => 'languages', 'action' => 'add', 'resource' => 'language', 'privilege' => 'manage'));
 }
Ejemplo n.º 2
0
 public function indexAction()
 {
     $translator = \Zend_Registry::get('container')->getService('translator');
     $this->view->languages = $this->repository->getLanguages();
     $this->view->actions = array(array('label' => $translator->trans('Add new Language', array(), 'languages'), 'module' => 'admin', 'controller' => 'languages', 'action' => 'add', 'resource' => 'language', 'privilege' => 'manage'));
 }