0

I've installed the Yii bootstrap extension for a Yii project I am working on. When I try to register the bootstrap files I get an error.

This is the code provided:

<?php Yii::app()->bootstrap->register(); ?> 

The error I get is as following:

enter image description here

I hope someone can help me out, I have no idea where to look for.

Thanks a lot for your time.

Asgaroth
  • 4,274
  • 3
  • 20
  • 36
Shark
  • 216
  • 4
  • 14

1 Answers1

2

you should be using:

<?php Yii::app()->bootstrap->register(); ?>

instead of

<?php Yii:app()->bootstrap->register(); ?>

Note the double colon ::

Asgaroth
  • 4,274
  • 3
  • 20
  • 36
  • Oops, my bad. I was using the double colon. I've edited my post. – Shark Oct 20 '13 at 17:57
  • That would be the weirdest thing, you don't have another class called `Yii` do you? – Asgaroth Oct 20 '13 at 18:54
  • I found it! I misscalled the bootstrap class in the configuration. Thanks for you help, if it werent for you I wouldn't have checked the components area. – Shark Oct 21 '13 at 13:11