Re: LESS CSS

2012-08-09 Thread André Luis
Thanks Thiago, i´ve discovered that file.less.css also works fine as less 
filenams. But thanks a lot!!

Em quinta-feira, 19 de julho de 2012 13h29min27s UTC-3, Thiago Belem 
escreveu:
>
> He can be using less.js <http://lesscss.org/> while developing the site..
>
> @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
>
> *Assando Sites* - Curso online de *CakePHP*
> assando-sites.com.br <http://goo.gl/b1EEd>
>
> thiagobelem.net
> con...@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 <
> jerem...@classoutfit.com > wrote:
>
>> Why?
>>
>>  
>> Jeremy Burns
>> Class Outfit
>>
>> http://www.classoutfit.com 
>>
>> 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+u...@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+u...@googlegroups.com  For more options, visit 
>> this group at http://groups.google.com/group/cake-php
>>
>
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: LESS CSS

2012-07-19 Thread Thiago Belem
He can be using less.js <http://lesscss.org/> while developing the site..

@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

*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br <http://goo.gl/b1EEd>

thiagobelem.net
cont...@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 <
jeremybu...@classoutfit.com> wrote:

> Why?
>
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> 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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: LESS CSS

2012-07-19 Thread Jeremy Burns | Class Outfit
Why?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: LESS CSS

2012-07-19 Thread André Luis
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: LESS CSS

2012-07-19 Thread Jeremy Burns | Class Outfit
Or compile the .less file into a .css file in your dev environment and use the 
.css file as normal. Lookup CodeKit - it's great.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 19 Jul 2012, at 13:30:17, Andy Gale wrote:

> On Thu, Jul 19, 2012 at 1:25 PM, André Luis  wrote:
> 
>> 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 =(
> 
> You're not serving .less files to the browser though are you? If you
> are you won't be too popular with Internet Explorer users.
> 
> This is how to do it anyway:
> 
> http://www.syahzul.com/cakephp/how-to-use-less-css-in-cakephp-application/
> 
> -- 
> Andy Gale
> http://andy-gale.com
> http://twitter.com/andygale
> 
> -- 
> 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: LESS CSS

2012-07-19 Thread Andy Gale
On Thu, Jul 19, 2012 at 1:25 PM, André Luis  wrote:

> 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 =(

You're not serving .less files to the browser though are you? If you
are you won't be too popular with Internet Explorer users.

This is how to do it anyway:

http://www.syahzul.com/cakephp/how-to-use-less-css-in-cakephp-application/

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


LESS CSS

2012-07-19 Thread André Luis
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php