Guys,
I am trying to set up a new project. I want to include some css files
and javascript files via the global view.yml. I have placed the
javascript files under web/js/ and placed the css under web/css/. I
would expect that the auto loader would pick up these files. I have
tried to include the files in the layout.php file with the lines
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
<?php use_javascript('jquery.js') ?>
<?php use_stylesheet('main.css') ?>
However I still do not see the javascript or css appear. Any help
would be greatly appricated as I am totally stumped?
This is my view.yml
# You can find more information about this file on the symfony
website:
# http://www.symfony-project.org/reference/1_4/en/13-View
default:
http_metas:
content-type: text/html
metas:
#title: symfony project
#description: symfony project
#keywords: symfony, project
#language: en
#robots: index, follow
stylesheets: [main.css]
javascripts: [jquery.js]
has_layout: on
layout: layout
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.