May be I didnt put this question right way ..
I want to know how to declare options in view.yml.
for example to get the stylesheet tag I use helper stylesheet_tag
('style', array('media' => 'all')) etcIs it possible to do the same in view.yml?? Dj On Mar 25, 11:53 am, dsb <[email protected]> wrote: > Hi, > > I have apps/myapp//templates/layout.php. In this template, I want to > define 3 stylesheets for the main template (to enable users to switch > between sytlesheet using javascript). > > I know that I can set global styles in apps/myapp/config/view.yml > like stylesheets: [style1.css, style2.css, style3.css] > > But I am looking for it to output something like > <link href="css/style.css" type="text/css" rel="stylesheet" /> > <link title="blue" type="text/css" rel="alternate stylesheet" > href="css/style1.css"/> > <link title="red" type="text/css" rel="alternate stylesheet" href="css/ > style2.css"/> > > How do I do this? Do I have to use use_stylesheet() helper and how do > I set it to get above output? > > I have another question related to javascript declaration for IE6 but > I'll put it in new thread. > > Thanks for you help. > Dj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
