Now, that's a nice trick!!!

On Mon, Oct 26, 2009 at 19:45, Greg Maruszeczka <gma...@gmail.com> wrote:

> On Mon, 26 Oct 2009 19:26:55 -0200
> Sid Ferreira <sid....@gmail.com> wrote:
>
> > Hi everyone! Well, there's a while that I always use only one app.
> > Even in the admin I use routes instead of another app.
> >
> > The reason to that is that I don't want to duplicate files (CSS and
> > JS), and so far didn't found a way to config the web/admin/index.php
> > to use the css inside the web/ folder.
> >
> > Well, am I the only one doing that?
> >
> > Thanks in advance!
> >
>
>
> I use two apps (frontend and admin) and put an .htaccess in the js,
> image and css directories of /web/admin like this example
> from /web/admin/css:
>
> <IfModule mod_rewrite.c>
>  RewriteEngine On
>  RewriteCond %{REQUEST_FILENAME} !-f
>  RewriteCond %{REQUEST_FILENAME} !-d
>  RewriteRule ^(.*)$ ../../css/$1 [QSA,L]
> </IfModule>
>
> That way it will first pick up admin-specific styles/scripts/images
> before the 'shared' assets under /web.
>
>
> GM
>
> --
>
> Greg Maruszeczka
>
> Office: +1 250 412 9651
> Mobile: +1 250 886 4577
>
> http://www.linkedin.com/in/gmarus
>
> GnuPG-ID: 0x0476B85F, http://pgp.mit.edu
>



-- 
Sidney G B Ferreira
Desenvolvedor Web

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

Reply via email to