/** * @return void */ public function indexAction() { $account = $this->securityContext->getAccount(); $this->view->assign('usrname', $account->getAccountIdentifier()); $this->view->assign('listCategories', $this->categoryRepository->findAll()); $this->view->assign('authors', $this->authorRepository->findAll()); }
/** * @param \SKL\Post\Domain\Model\Post $post * @return void */ public function editAction(Post $post) { $account = $this->securityContext->getAccount(); $this->view->assign('usrname', $account->getAccountIdentifier()); $this->view->assign('post', $post); $this->view->assign('listCategories', $this->categoryRepository->findAll()); $this->view->assign('listAuthor', $this->authorRepository->findAll()); }
/** * @param \SKL\Post\Domain\Model\Post $post * @return void */ public function editAction(Post $post) { $this->view->assign('post', $post); $this->view->assign('listCategories', $this->categoryRepository->findAll()); $this->view->assign('listAuthor', $this->authorRepository->findAll()); }
/** * @return void */ public function indexAction() { $this->view->assign('listCategories', $this->categoryRepository->findAll()); $this->view->assign('authors', $this->authorRepository->findAll()); }