viernes, 5 de julio de 2013

Configuración de la extension bootstrap

Configuramos en la carpeta config main.php
la ruta de nuestra   extension:

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

//Agregamos en el modulo gii  para generar cruds con bootstrap


'modules'=>array(
        // uncomment the following to enable the Gii tool
       
       
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'pass',
                         'generatorPaths'=>array(
                           'bootstrap.gii',
                            ),
            // If removed, Gii defaults to localhost only. Edit carefully to taste.
            'ipFilters'=>array('127.0.0.1','::1'),
        ),

       
       
    ),

    // application components
   

    'components'=>array(

          'bootstrap'=>array(
            'class'=>'bootstrap.components.Bootstrap',
        ),

No hay comentarios:

Publicar un comentario