Is it possible to define a view.yml file in the folder /plugins/ myPlugin/config/ to load js and css from myPlugin in the head of the html page or do I add them in /apps/backend/config/view.yml ?
On 15 sep, 17:53, david <da...@inspiredthinking.co.uk> wrote: > Aye. I was thinking more that it's better to use the task than to do it > by hand. It helps ensure it's repeatable when moving to prod. > > On Tue, 15 Sep 2009 17:47:54 +0200, Richtermeister <nex...@gmail.com> > wrote: > > > > > > > On linux systems the plugin:publish-assets task will actually do a > > symlink by default. > > On windows the files just get copied. > > > Daniel > > > On Sep 15, 3:30 am, david <da...@inspiredthinking.co.uk> wrote: > >> Putting the files into the plugin web/js & web/css directories and then > >> using the publish-assets task should put the files into the > >> appropriate directories for you - symlinking shouldn't be needed. > > >> On Tue, 15 Sep 2009 12:14:41 +0200, Alexandru-Emil Lupu > > >> <gang.al...@gmail.com> wrote: > >> > when you have some css or js for a pluging you usually can create a > > >> symlink > >> > called NamePlugin from your pluginName/web dir into the web dir > > >> > ex: > > >> > plugins/ NamePlugin/web/ > >> > plugins/ NamePlugin/web/js > >> > plugins/ NamePlugin/web/css > > >> > ln -s plugins/NamePlugin/web web/NamePlugin > > >> > and your web interface will contain /NamePlugin/ folder that contains > >> > your > >> > stuff > >> > in the view.yml call > >> > default: > >> > stylesheets: [NamePlugin/css/jquery/theme.css] > >> > javascripts: [NamePlugin/js/jquery/jquery-1.3.2.min.js] > > >> > On Tue, Sep 15, 2009 at 11:29 AM,smellycat37> > >> <charley.mail...@gmail.com>wrote: > > >> >> Hi, > > >> >> I'm trying to make my first own plugin... I've got some js and css > >> >> required in this plugin... so, I put them in the directory /plugings/ > >> >> myPluging/web/js/ & /plugings/myPluging/web/css/... In the /plugings/ > >> >> myPluging/config/view.yml I call them... > >> >> That's a part of the view.yml : > >> >> default: > >> >> stylesheets: [jquery/theme.css] > >> >> javascripts: [jquery/jquery-1.3.2.min.js] > > >> >> My application load without success the > >> >>http://my_url/js/jquery/jquery-1.3.2.min.js > >> >> &http://my_url/css/jquery/theme.cssbecausethey are not in my main > >> >> web directory... > > >> >> What have I to do? Copy paste the content of my plugin directory web > >> >> into my main web directory ? Do I need to make a task for that? > > >> >> Thanks for your answered > > >> -- > >> Using Opera's revolutionary e-mail client:http://www.opera.com/mail/ > > -- > Using Opera's revolutionary e-mail client:http://www.opera.com/mail/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---