barra de navegacion

Buenas noches, soy nuevo usando yii framework… Actualmente eh agregado la funcionalidad del uso de bootstrap, pero no me esta implementando la parte del responsive… Alguien podría darme la idea de como hacerlo?? Muchas gracias de antemano.

Buenas noches, soy nuevo usando yii framework… Actualmente eh agregado la funcionalidad del uso de bootstrap, pero no me esta implementando la parte del responsive… Alguien podría darme la idea de como hacerlo?? Muchas gracias de antemano.

PD: olvide poner las capturas.

Podrías mostrar como estas referenciando en bootstrap iy como lo tienes configurado en el main?

ok Aqui te lo muestro… creo q con estas 3 lineas de codigo lo solucione:

<body style=" padding: 25px;">

<div class="jumbotron">

<div class="container">

Aqui esta mi main.php

<?php /* @var $this Controller */ ?>

<!DOCTYPE html>

<html>

<head>

&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;


&lt;meta name=&quot;language&quot; content=&quot;en&quot;&gt;





&#60;&#33;-- blueprint CSS framework --&#62;


&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/screen.css&quot; media=&quot;screen, projection&quot;&gt;


&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/print.css&quot; media=&quot;print&quot;&gt;


&#60;&#33;--[if lt IE 8]&gt;


&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/ie.css&quot; media=&quot;screen, projection&quot;&gt;


&lt;&#33;[endif]--&#62;





&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/main.css&quot;&gt;


&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/form.css&quot;&gt;





&lt;title&gt;&lt;?php echo CHtml::encode(&#036;this-&gt;pageTitle); ?&gt;&lt;/title&gt;


&lt;body style=&quot; padding: 25px;&quot;&gt;

<div class="jumbotron">

<div class="container">

</head>

<body>

<div class="container" id="page">

&lt;div id=&quot;header&quot;&gt;


	&lt;div id=&quot;logo&quot;&gt;&lt;?php echo CHtml::encode(Yii::app()-&gt;name); ?&gt;&lt;/div&gt;


&lt;/div&gt;&#60;&#33;-- header --&#62;





&lt;div id=&quot;mainmenu&quot;&gt;


	&lt;?php &#036;this-&gt;widget('zii.widgets.CMenu',array(


		'items'=&gt;array(


			array('label'=&gt;'Home', 'url'=&gt;array('/site/index')),


			//array('label'=&gt;'Empleo Cliente', 'url'=&gt;array('/catEmpleoCliente/index')),


			//array('label'=&gt;'Estado Civil', 'url'=&gt;array('/catEstadoCivil/index')),


			//array('label'=&gt;'Estado Credito', 'url'=&gt;array('/catEstadoCredito/index')),


			//array('label'=&gt;'Estado Solicitud', 'url'=&gt;array('/catEstadoSolicitud/index')),


			array('label'=&gt;'Ref Comercial', 'url'=&gt;array('/catReferenciaComercial/index')),


			array('label'=&gt;'Ref Familiar', 'url'=&gt;array('/catReferenciaFamiliares/index')),


			array('label'=&gt;'Ref Personal', 'url'=&gt;array('/catReferenciaPersonal/index')),					


			array('label'=&gt;'Rol', 'url'=&gt;array('/catRol/index')),


			array('label'=&gt;'Clientes', 'url'=&gt;array('/tnCliente/index')),


			array('label'=&gt;'Creditos', 'url'=&gt;array('/tnCredito/index')),


			array('label'=&gt;'Plan de Pago', 'url'=&gt;array('/tnPlanpago/index')),


			array('label'=&gt;'Sol de Credito', 'url'=&gt;array('/tnSolicitudcredito/index')),


			array('label'=&gt;'Usuario', 'url'=&gt;array('/Usuario/index')),


			array('label'=&gt;'Login', 'url'=&gt;array('/site/login'), 'visible'=&gt;Yii::app()-&gt;user-&gt;isGuest),


			array('label'=&gt;'Logout ('.Yii::app()-&gt;user-&gt;name.')', 'url'=&gt;array('/site/logout'), 'visible'=&gt;&#33;Yii::app()-&gt;user-&gt;isGuest)


		),


	)); ?&gt;


&lt;/div&gt;&#60;&#33;-- mainmenu --&#62;


&lt;?php if(isset(&#036;this-&gt;breadcrumbs)):?&gt;


	&lt;?php &#036;this-&gt;widget('zii.widgets.CBreadcrumbs', array(


		'links'=&gt;&#036;this-&gt;breadcrumbs,


	)); ?&gt;&#60;&#33;-- breadcrumbs --&#62;


&lt;?php endif?&gt;





&lt;?php echo &#036;content; ?&gt;





&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;





&lt;div id=&quot;footer&quot;&gt;


	Copyright &amp;copy; &lt;?php echo date('Y'); ?&gt; by Stark Ind&lt;br/&gt;


	All Rights Reserved&lt;br/&gt;


	&lt;?php echo Yii::powered(); ?&gt;


&lt;/div&gt;&#60;&#33;-- footer --&#62;

</div><!-- page -->

</body>

</html>

perdon es este:

<?php

Yii::setPathOfAlias(‘bootstrap’, dirname(FILE).’/../extensions/bootstrap’);

// uncomment the following to define a path alias

// Yii::setPathOfAlias(‘local’,‘path/to/local-folder’);

// This is the main Web application configuration. Any writable

// CWebApplication properties can be configured here.

return array(

'basePath'=&gt;dirname(__FILE__).DIRECTORY_SEPARATOR.'..',


'name'=&gt;'My Web Application',


'theme' =&gt;'bootstrap',





// preloading 'log' component


'preload'=&gt;array('log' , 'bootstrap'),





// autoloading model and component classes


'import'=&gt;array(


	'application.models.*',


	'application.components.*',


),





'aliases'=&gt; array ('booster'=&gt;realpath(__DIR__.'/&#46;&#46;/extensions/bootstrap'),


	),





'modules'=&gt;array(


	// uncomment the following to enable the Gii tool


	


	'gii'=&gt;array(


		'class'=&gt;'system.gii.GiiModule',


		'password'=&gt;'1234',


		'generatorPaths'=&gt;Array(


			'booster.gii'


			),


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


		'ipFilters'=&gt;array('127.0.0.1','::1'),


	),


	


),





// application components


'components'=&gt;array(





	'user'=&gt;array(


		// enable cookie-based authentication


		'allowAutoLogin'=&gt;true,


	),





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





	'bootstrap' =&gt; array(


		'class' =&gt; 'booster.components.Booster',


		'responsiveCss' =&gt;true,


		'minify' =&gt;true,





		),


	


	'urlManager'=&gt;array(


		'urlFormat'=&gt;'path',


		'showScriptName'=&gt;false,


		'urlSuffix'=&gt;'.html',


		'rules'=&gt;array(


			'&lt;controller:&#092;w+&gt;/&lt;id:&#092;d+&gt;'=&gt;'&lt;controller&gt;/view',


			'&lt;controller:&#092;w+&gt;/&lt;action:&#092;w+&gt;/&lt;id:&#092;d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',


			'&lt;controller:&#092;w+&gt;/&lt;action:&#092;w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',


		),


	),


	





	// database settings are configured in database.php


	'db'=&gt;require(dirname(__FILE__).'/database.php'),





	'errorHandler'=&gt;array(


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


		'errorAction'=&gt;'site/error',


	),





	'log'=&gt;array(


		'class'=&gt;'CLogRouter',


		'routes'=&gt;array(


			array(


				'class'=&gt;'CFileLogRoute',


				'levels'=&gt;'error, warning',


			),


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


			/*


			array(


				'class'=&gt;'CWebLogRoute',


			),


			*/


		),


	),





),





// application-level parameters that can be accessed


// using Yii::app()-&gt;params['paramName']


'params'=&gt;array(


	// this is used in contact page


	'adminEmail'=&gt;'webmaster@example.com',


),

);

Me habia confundido de main.

Hola parece que la referencia al bootstrap está bien, en caso de quie no te funcione podrías utilizar esta:




'aliases' => array(

        

        'bootstrap' => realpath(__DIR__ . '/../extensions/bootstrap'), // change this if necessary

    ),



y en el array de imports deberías poner lo siuiente independiente de la forma de referencia al bootstrap




'bootstrap.behaviors.*',

'bootstrap.helpers.*',

'bootstrap.helpers.TbHtml',

'bootstrap.helpers.TbArray',

'bootstrap.behaviors.TbWidget',



Saludos!

Muchas Gracias, lo probare en un instante.