예제 #1
0
 /**
  * @return void
  */
 public function indexAction()
 {
     $this->view->assign('categories', $this->categoryRepository->findAll());
 }
예제 #2
0
 /**
  * @param \WE\Homework\Domain\Model\Post $post
  * @return void
  */
 public function editAction(Post $post)
 {
     $this->view->assign('listAuthors', $this->authorRepository->findAll());
     $this->view->assign('listCategory', $this->categoryRepository->findAll());
     $this->view->assign('post', $post);
 }