From b5ffdf4ad7725e008173b49b71fe66816646da3f Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Wed, 15 Aug 2012 14:25:08 +0200 Subject: [PATCH] Fixed news list (didn't load without login) Signed-off-by: Gergely Polonkai --- app/config/security.yml | 4 ++++ src/KekRozsak/FrontBundle/Controller/NewsController.php | 2 +- .../Resources/views/Default/main_template.html.twig | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/config/security.yml b/app/config/security.yml index ad96c02..85d5d35 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -31,6 +31,10 @@ security: pattern: \.css$ security: false + news_side_list: + pattern: ^/newsSideList.html$ + security: false + members: pattern: ^/ diff --git a/src/KekRozsak/FrontBundle/Controller/NewsController.php b/src/KekRozsak/FrontBundle/Controller/NewsController.php index e40bd19..69b0d48 100644 --- a/src/KekRozsak/FrontBundle/Controller/NewsController.php +++ b/src/KekRozsak/FrontBundle/Controller/NewsController.php @@ -32,7 +32,7 @@ class NewsController extends Controller $news = $newsRepo->findBy($searchCriteria, array('createdAt' => 'DESC'), 4); return array( - 'news' => $news, + 'recentNews' => $news, ); } } diff --git a/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig b/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig index 8590c59..4941261 100644 --- a/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig +++ b/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig @@ -5,11 +5,10 @@ Kék Rózsák{% block title %}{% endblock %} - - {% stylesheets 'bundles/kekrozsakfront/css/*' filter='cssrewrite' output='css/kekrozsak.css' %} {% endstylesheets %} + {% block additional_css %}{% endblock %}