Include Less File Using Registercssfile

Hi,

I’m trying to convert this line of HTML :




<link rel="stylesheet/less" type="text/css" href="/less/bootstrap.less">



using registerCssFile :




<?php Yii::app()->getClientScript()->registerCssFile('/less/bootstrap.less');?>



when I do this, the HTML generated by Yii looks like this :




<link rel="stylesheet" type="text/css" href="/less/bootstrap.less">



My LESS file isn’t interprated this way because of the ‘rel’ attribute

I just want to replace the default [ rel="stylesheet" ] by [ rel="stylesheet/less"]

>> Is it possible to custom this ‘rel’ attribute using ‘registerScriptFile’ ??

Thanx alot

You can use the Clientscript::registerLinkTag instead of registerCssFile to set the relation ‘stylesheet/less’.

thanx alot !