X-Editable and Bootstrap

I’m trying to use X-editable and it needs bootstrap to function…

[size="4"][color="#FF0000"]This is my config.main file: [/size][/color][/size]


Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');

Yii::setPathOfAlias('editable', dirname(__FILE__).'/../extensions/editable');


return array(

	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',

	'name'=>'My Web Application',

        'theme'=>'hebo',

	// preloading 'log' component

	'preload' => array('log', 'bootstrap'),


	// autoloading model and component classes

	'import'=>array(

		'application.models.*',

		'application.components.*',

                'bootstrap.helpers.TbHtml',

                'application.extensions.bootstrap.*',

                'application.extensions.bootstrap.widgets.*',

                'application.extensions.editable.assets.*', //easy include of editable classes

                'application.extensions.editable.*',

            

	),

    'aliases' => array(

        'bootstrap' => realpath(__DIR__.'/../extensions/bootstrap'),

    ),


	'modules'=>array(

		// uncomment the following to enable the Gii tool

		

		'gii' => array(

            'genaratorPaths' => array('bootstrap.gii'),

            'class' => 'system.gii.GiiModule',

            'password' => 'admin',

        // If removed, Gii defaults to localhost only. Edit carefully to taste.

        ),

        'genaratorPaths' =>array(

           'bootstrap.gii',

       ),

    ),

    // application components

    'components' => array(

        'bootstrap' =>array(

           'class' =>'ext.bootstrap.components.Bootstrap',

        ),


	// application components

	'components'=>array(

            'bootstrap' =>array(

           'class' =>'ext.bootstrap.components.Bootstrap',

        ),

		'user'=>array(

			// enable cookie-based authentication

			'allowAutoLogin'=>true,

		),

                //X-editable config

        'editable' => array(

            'class'     => 'editable.EditableConfig',

            'form'      => 'bootstrap',        //form style: 'bootstrap', 'jqueryui', 'plain' 

            'mode'      => 'popup',            //mode: 'popup' or 'inline'  

            'defaults'  => array(              //default settings for all editable elements

               'emptytext' => 'Click to edit'

                 )

                 )

                 ),        

		// uncomment the following to enable URLs in path-format

		/*

		'urlManager'=>array(

			'urlFormat'=>'path',

			'rules'=>array(

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

			),

		),

		*/

		//'db'=>array(

			//'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',

		//),

		// uncomment the following to use a MySQL database

		

		'db'=>array(

			'connectionString' => 'mysql:host=localhost;dbname=bdprojectogqu2014',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '',

			'charset' => 'utf8',

		),

		

		'errorHandler'=>array(

			// use 'site/error' action to display errors

			'errorAction'=>'site/error',

		),

		'log'=>array(

			'class'=>'CLogRouter',

			'routes'=>array(

				array(

					'class'=>'CFileLogRoute',

					'levels'=>'error, warning',

				),

				// uncomment the following to show log messages on web pages

				/*

				array(

					'class'=>'CWebLogRoute',

				),

				*/

			),

		),

	),


	// application-level parameters that can be accessed

	// using Yii::app()->params['paramName']

	'params'=>array(

		// this is used in contact page

		'adminEmail'=>'webmaster@example.com',

	),

);



[size="4"][color="#FF0000"]and this is my utente.admin file where I try to use the x-editable extension:[/size][/color][/size]


<?php $this->widget('bootstrap.widgets.TbGridView', array(

    'id' => 'utente-grid',

    'itemsCssClass' => 'table-bordered items',

    'dataProvider' => $model->search(),

    'columns'=>array(

        array(

           'class' => 'editable.EditableColumn',

           'name' => 'nomeUtente',

           'headerHtmlOptions' => array('style' => 'width: 110px'),

           'editable' => array(    //editable section

                  'apply'      => '$data->user_status != 4', //can't edit deleted users

                  'url'        => $this->createUrl('site/utente/update'),

                  'placement'  => 'right',

              )               

        ),

        ),

        )); ?>

[size=“4”][color="#FF0000"]And I keep getting this error that I can’t solve: [/size][/color][/size]


Property "CWebApplication.editable" is not defined.


C:\xampp\htdocs\yii\framework\base\CModule.php(105)


093     /**

094      * Getter magic method.

095      * This method is overridden to support accessing application components

096      * like reading module properties.

097      * @param string $name application component or property name

098      * @return mixed the named property value

099      */

100     public function __get($name)

101     {

102         if($this->hasComponent($name))

103             return $this->getComponent($name);

104         else

105             return parent::__get($name);

106     }

107 

108     /**

109      * Checks if a property value is null.

110      * This method overrides the parent implementation by checking

111      * if the named application component is loaded.

112      * @param string $name the property name or the event name

113      * @return boolean whether the property value is null

114      */

115     public function __isset($name)

116     {

117         if($this->hasComponent($name))


Require this overwrite to show bootstrap sort icons

103     */

104     protected function renderHeaderCellContent()

105     {

106         if(yii::app()->editable->form != EditableConfig::FORM_BOOTSTRAP) {

107             parent::renderHeaderCellContent();

108             return;

109         }

110         

111         if ($this->grid->enableSorting && $this->sortable && $this->name !== null)

Thank’s in advance for all the help…