Fixed news list (didn't load without login)

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely 2012-08-15 14:25:08 +02:00
parent feda5d7d57
commit b5ffdf4ad7
3 changed files with 6 additions and 3 deletions

View File

@ -31,6 +31,10 @@ security:
pattern: \.css$ pattern: \.css$
security: false security: false
news_side_list:
pattern: ^/newsSideList.html$
security: false
members: members:
pattern: ^/ pattern: ^/

View File

@ -32,7 +32,7 @@ class NewsController extends Controller
$news = $newsRepo->findBy($searchCriteria, array('createdAt' => 'DESC'), 4); $news = $newsRepo->findBy($searchCriteria, array('createdAt' => 'DESC'), 4);
return array( return array(
'news' => $news, 'recentNews' => $news,
); );
} }
} }

View File

@ -5,11 +5,10 @@
<head> <head>
<title>Kék Rózsák{% block title %}{% endblock %}</title> <title>Kék Rózsák{% block title %}{% endblock %}</title>
<meta charset="utf8" /> <meta charset="utf8" />
<link rel="stylesheet" type="text/css" href="{{ asset('css/kekrozsak_front.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('js/jquery-cluetip/jquery.cluetip.css') }}" />
{% stylesheets 'bundles/kekrozsakfront/css/*' filter='cssrewrite' output='css/kekrozsak.css' %} {% stylesheets 'bundles/kekrozsakfront/css/*' filter='cssrewrite' output='css/kekrozsak.css' %}
<link rel="stylesheet" type="text/css" href="{{ asset_url }}" /> <link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %} {% endstylesheets %}
<link rel="stylesheet" type="text/css" href="{{ asset('js/jquery-cluetip/jquery.cluetip.css') }}" />
{% block additional_css %}{% endblock %} {% block additional_css %}{% endblock %}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/lib/jquery.hoverIntent.js')}}"></script> <script type="text/javascript" src="{{ asset('js/jquery-cluetip/lib/jquery.hoverIntent.js')}}"></script>