Upgrading to yii 2.0, registerCssFile not adding LINK tags

Hi,

Im just on day2 of my upgrade. Like yii1, how can link and script tags be added atuomatically in yii2. My views used to call cclientscript to add js and css files, i have chnaged it to use registercssfile but the head tag of output is empty. the view i am using is without a layout. This was not a problem then, what needs to be changed?

thanks,

vikas

solved. the yii code was crashing before the View handlers could insert the html.