@André
You can do this:
$this->Html->css($this->Html->url('/css/file.less', true), false, array('inline'=>false))
If the CSS url starts with "http" Cake will not append the .css extension, and with Html::url() you get a complete URL to the file.
Cya,
--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil
-- --
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil
Assando Sites - Curso online de CakePHP
assando-sites.com.br
thiagobelem.net
contato@thiagobelem.net
Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
thiagobelem.net
contato@thiagobelem.net
Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
On Thu, Jul 19, 2012 at 10:10 AM, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> wrote:
Why?On 19 Jul 2012, at 13:41:39, André Luis wrote:The problem is: I need to add the less css inside a view using $this->Html->css('file.less',false,array('inline'=>false));In my opinion it would be nice if CakePHP checks for the extension, if there is no extension it adds .css, but if exists, it doesnt.
Em quinta-feira, 19 de julho de 2012 09h25min59s UTC-3, André Luis escreveu:Hi people, i dont know if here is the right place to ask for this, but it would be nice if the HTML helper detects if the desired css file is a .css or .less, them it doesnt put a .css in front of the file, i always need to change my core files to accept the less files. And the less script doesnt accepts .css files =(The site for lesscss is http://www.lesscss.org if anyone want to see more about what i am talking about--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
No comments:
Post a Comment