Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace CoderslabBundle\Controller;
- use CoderslabBundle\Entity\Article;
- use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
- class DefaultController extends Controller
- {
- /**
- * @Route("/showArticle/{id}/")
- */
- public function showArticleAction($id)
- {
- $article = Article::GetArticlebyId($id);
- return $this->render('CoderslabBundle:Article:showArticle.html.twig',
- [
- 'article' => $article
- ]
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement