Chris83, on 07 February 2012 - 02:06 PM, said:
Here's a working demo with some of the polished and new widgets in the upcoming release:
Enjoy!
Can't wait for this! It is looking really good.
Posted 08 February 2012 - 04:40 AM
Posted 08 February 2012 - 04:47 AM
ronanggl, on 08 February 2012 - 04:40 AM, said:
Posted 08 February 2012 - 11:46 AM
<head>
.....
<?php echo Yii::app()->bootstrap->registerCoreCss(); ?>
</head>
Posted 08 February 2012 - 01:44 PM
@import "../protected/extensions/bootstrap/vendors/bootstrap/lib/bootstrap.less"; Your less here ...
Posted 09 February 2012 - 03:29 AM
Quote
<?php $this->widget('BootNavbar', array(
'items'=>array(
array(
'class'=>'bootstrap.widgets.BootMenu',
'items'=>array(
array('label'=>'Home', 'url'=>array('site/index')),
array('label'=>'About', 'url'=>array('site/page','view'=>'about')),
array('label'=>'Gallery', 'url'=>'#', 'items'=>array(
array('label'=>'Action', 'url'=>'#'),
array('label'=>'Another action', 'url'=>'#'),
array('label'=>'Something else here', 'url'=>'#'),
array('label'=>'Separated link', 'url'=>'#'),
)),
array('label'=>'Contact', 'url'=>array('site/contact')),
),
),
'<form class="navbar-search pull-left" action="">
<input type="text" class="search-query span2" placeholder="Search">
</form>',
array(
'class'=>'bootstrap.widgets.BootMenu',
'htmlOptions'=>array('class'=>'pull-right'),
'items'=>array(
array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
),
),
),
)); ?>$(function () { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { $(e.target).button('toggle') }) })}( window.jQuery )
Posted 09 February 2012 - 05:56 AM
Posted 09 February 2012 - 09:08 AM
Posted 09 February 2012 - 09:15 AM
OniAkai, on 09 February 2012 - 09:08 AM, said:
Posted 09 February 2012 - 09:24 AM
Posted 09 February 2012 - 07:38 PM
Posted 10 February 2012 - 02:19 AM
<head>
.....
<?php echo Yii::app()->bootstrap->registerCoreCss(); ?>
</head>Bootstrap and its behaviors do not have a method or closure named "registerCoreCss".
<?php
// 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'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array(
'log',
'bootstrap',
),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'ext.bootstrap.widgets.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'1qaz',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array(
'bootstrap.gii', // since 0.9.1
),
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// 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>',
),
'showScriptName'=>false,
'caseSensitive'=>false,
),
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
// uncomment the following to use a MySQL database
/*
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
'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',
),
*/
),
),
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap',
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
);
Posted 10 February 2012 - 03:44 AM
Osh, on 10 February 2012 - 02:19 AM, said:
<head>
.....
<?php echo Yii::app()->bootstrap->registerCoreCss(); ?>
</head>Bootstrap and its behaviors do not have a method or closure named "registerCoreCss".
<?php
// 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'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
// preloading 'log' component
'preload'=>array(
'log',
'bootstrap',
),
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'ext.bootstrap.widgets.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'1qaz',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
'generatorPaths'=>array(
'bootstrap.gii', // since 0.9.1
),
),
),
// application components
'components'=>array(
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
),
// 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>',
),
'showScriptName'=>false,
'caseSensitive'=>false,
),
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
// uncomment the following to use a MySQL database
/*
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
'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',
),
*/
),
),
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap',
),
),
// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
'params'=>array(
// this is used in contact page
'adminEmail'=>'webmaster@example.com',
),
);
Posted 10 February 2012 - 03:46 AM
<?php echo Yii::app()->bootstrap->registerCss(); ?>
Posted 10 February 2012 - 03:38 PM
joedwy, on 17 December 2011 - 03:25 PM, said:
Posted 10 February 2012 - 04:52 PM
Posted 10 February 2012 - 05:26 PM
Posted 10 February 2012 - 05:29 PM
@media (max-width: 980px) {
body {
padding-top: 0px;
}
}