Yii Framework Forum: Yii Boostrap & Constants - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Boostrap & Constants Rate Topic: -----

#1 User is offline   DarKDinDoN 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 23-November 11

Posted 15 June 2012 - 01:14 PM

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.
0

#2 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 647
  • Joined: 29-November 08
  • Location:Paris, France

Posted 15 June 2012 - 04:01 PM

Hi DarKDinDoN,
try to write :

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


just before the beginWidget.

B)
0

#3 User is offline   DarKDinDoN 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 23-November 11

Posted 15 June 2012 - 07:50 PM

\o/

Here what I did :)

'import' => array(
        'application.models.*',
        'application.components.*',
        'ext.giix-components.*',
        'ext.bootstrap.widgets.*',
    ),


Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users