Exemplo n.º 1
0
 public function indexAction()
 {
     $code = $this->params('code');
     if ($code == null || $code == '') {
         $code = 'mail';
     }
     $auth = $this->getServiceLocator()->get('zfcuser_auth_service');
     $user = $auth->getIdentity();
     $view = new ViewModel();
     $this->templateService->setDefaultTemplates($user);
     $templates = $this->templateService->getTemplatesByUserAndCode($user, $code);
     $view->user = $user;
     $view->templates = $templates;
     $view->code = $code;
     return $view;
 }