2012-07-01 08:02:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace KekRozsak\FrontBundle\Controller;
|
|
|
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
|
|
|
|
|
|
|
class DefaultController extends Controller
|
|
|
|
{
|
2012-07-01 17:11:31 +00:00
|
|
|
public function articleAction($articleSlug)
|
|
|
|
{
|
|
|
|
$article = $this->getDoctrine()->getRepository('KekRozsakFrontBundle:Article')->findOneBySlug($articleSlug);
|
|
|
|
|
|
|
|
return $this->render('KekRozsakFrontBundle:Default:article.html.twig', array(
|
|
|
|
'article' => $article
|
|
|
|
));
|
|
|
|
}
|
2012-07-01 08:02:35 +00:00
|
|
|
}
|