You can pass "import" as the second argument.
On May 27, 4:35 am, Bart Vangeneugden <vangeneug...@gmail.com> wrote:
> Hello Lorenzo,
>
> the @import url(..) line is CSS only. PHP has nothing to do with it.
> The best answer I can give is checking in Firebug (http://getfirebug.com/)
> if the file gets loaded, or gets a 404.
> Perhaps you did get the path wrong, is your address llike the following:
>
> http://www.example.com/
> orhttp://www.example.com/folder_you_installed_cakephp_in
>
> The* @import url("/css/other.css");* will only work if you configured your
> website like the first example
>
> Bart
>
> On Thu, May 27, 2010 at 11:07, Lorenzo Bettini <bett...@dsi.unifi.it> wrote:
> > Hi
>
> > does css @import url work in cakephp?
>
> > I tried to import another css in my main.css with
>
> > @import url("css/other.css");
>
> > and
>
> > @import url("/css/other.css");
>
> > but it does not seem to work.
>
> > Of course, instead, I can always do in my layout
>
> > echo $html->css('main');
> > echo $html->css('other');
>
> > but I just wanted to know whether the @import is supported or not.
>
> > thanks in advance
> > Lorenzo
>
> > --
> > Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
> > HOME:http://www.lorenzobettini.itMUSIC:http://www.purplesucker.com
> > BLOGS:http://tronprog.blogspot.com http://longlivemusic.blogspot.com
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment