public function indexAction() { //$this->getTaskMapper(); return ["posts" => $this->postService->findAllPosts()]; }
public function indexAction() { return new ViewModel(array('posts' => $this->postService->findAllPosts())); }
public function indexAction() { // 128 //echo "Hi!!!"; return new ViewModel(array('posts' => $this->postService->findAllPosts())); }