I managed to get Yii working in drupal. So that I can use
require_once('yii/framework/yii.php');
$yii = Yii::createWebApplication('yii/protected/config/main.php');
$yii->bootstrap->register();
But when I try to use a widget like:
$cntr = new CController('') ;
$content = $cntr->widget('bootstrap.widgets.TbButtonGroup', array(
'type'=>'primary', // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
'buttons'=>array(
array('label'=>'Action', 'items'=>array(
array('label'=>'Action', 'url'=>'#'),
array('label'=>'Another action', 'url'=>'#'),
array('label'=>'Something else', 'url'=>'#'),
array('label'=>'Separate link', 'url'=>'#'),
)),
),
),true);
return $content;
Above code is in a page callback within drupal.
The html for the buttons is generated but the script/css file are not used.
The css/js files are published in the assets folder in the webroot.
I guess I need an extra step to actually include them but I thought Yii would take care of that like in a normal
yii application.
So what am I missing here?