has_layout:     on
should be
has_layout:     true

1.4  comes with a new version of yaml parser, and true is the only valid
boolean  true  in  it.  Same mistake "killed" my security.yml files,
maybe it is the reason why your view.yml isn't working.

Âû ïèñàëè 13 ??????? 2010 ?., 23:50:55:

> 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



-- 
Ñ óâàæåíèåì,
 ??????? ????                          mailto:[email protected]

-- 
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.

Reply via email to