Create a new page


i’m the new one Yii framework, i would like a create a new page for bootstrap.

In the controller:

public function actionBootstrap()




and in the view file:bootstrap.php

<div class="bootstrap-alert">


Yii::app()->user->setFlash(‘success’, ‘<strong>Well done!</strong> You successfully read this important alert message.’);

Yii::app()->user->setFlash(‘info’, '<strong>Heads up!</strong> This alert needs your attention, but it\‘s not super important.’);

Yii::app()->user->setFlash(‘warning’, '<strong>Warning!</strong> Best check yo self, you\‘re not looking too good.’);

Yii::app()->user->setFlash(‘error’, ‘<strong>Oh snap!</strong> Change a few things up and try submitting again.’);






<div class="bootstrap-breadcrumbs">


$this->widget(‘bootstrap.widgets.BootBreadcrumbs’, array(

‘links’ => array(‘Library’ => ‘#’, ‘Data’),




the issue is to display a test of bootstrap.

but it’s doesn’t work:

PHP notice

Trying to get property of non-object

thanks in advance…