kekrozsak/src/KekRozsak/FrontBundle/Controller/ArticleController.php
Polonkai Gergely 067a9fae97 Revised Article stuff (Controller and templates)
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-07-31 09:46:25 +02:00

28 lines
678 B
PHP

<?php
namespace KekRozsak\FrontBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use KekRozsak\FrontBundle\Entity\Article;
class ArticleController extends Controller
{
/**
* @Route("/cikk/{slug}", name="KekRozsakFrontBundle_articleView")
* @Template()
* @ParamConverter("article")
*
* @param KekRozsak\FrontBundle\Entity\Article $article
*/
public function viewAction(Article $article)
{
return array(
'article' => $article,
);
}
}