Yii Boostrap & Constants

Hello,

I can’t use constants of Yii boostrap inside my script.

Here is the error :


include(BootActiveForm.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

And here is the script :




'preload'=>array(

        'log',

        'bootstrap',

    ),




$login_form = $this->beginWidget('bootstrap.widgets.BootActiveForm',array(

        'action'=>Yii::app()->createUrl('site/login'),

        'id'=>'login-form',

        'type'=>BootActiveForm::TYPE_HORIZONTAL, // THIS DOESN'T WORK !

    )

)

Can someone help me ?

Thanks,

Maxime.

Hi DarKDinDoN,

try to write :


Yii::import('bootstrap.widgets.BootActiveForm');

just before the beginWidget.

B)

\o/

Here what I did :)




'import' => array(

        'application.models.*',

        'application.components.*',

        'ext.giix-components.*',

        'ext.bootstrap.widgets.*',

    ),



Thanks