Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @Route("/article/{id}", name="article_view")
- * @param $id
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function viewArticle($id)
- {
- $article = $this->getDoctrine()->getRepository(Article::class)->find($id);
- return $this->render("article/article.html.twig",
- [
- "article" => $article
- ]);
- }
- /**
- * @Route("/article/allarticles", name="123")
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function test()
- {
- return $this->render("article/allarticles.html.twig");
- }
Advertisement
Add Comment
Please, Sign In to add comment