Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
81224af0
Commit
81224af0
authored
Dec 19, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some text and styles in the docs
parent
b76e66d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
24 deletions
+37
-24
styles.css
demo/css/styles.css
+1
-0
styles.less
demo/less/styles.less
+4
-0
setup.php
demo/protected/views/site/setup.php
+32
-24
No files found.
demo/css/styles.css
View file @
81224af0
...
...
@@ -219,6 +219,7 @@ p {
padding
:
6px
0
;
}
.subnav.navbar-fixed-top
{
top
:
40px
;
}
.donate
h3
{
margin-top
:
0
;
}
footer
.powered
{
color
:
#888888
;
margin-bottom
:
20px
;
...
...
demo/less/styles.less
View file @
81224af0
...
...
@@ -42,6 +42,10 @@ p {
top: 40px;
}
.donate h3 {
margin-top: 0;
}
footer {
.powered {
color: #888;
...
...
demo/protected/views/site/setup.php
View file @
81224af0
...
...
@@ -13,41 +13,49 @@ $this->addMetaProperty('fb:app_id', Yii::app()->fb->appID);
<h2>
Setup
</h2>
<p>
Download the latest release
.
</p>
<p>
Download the latest release
from Yii extensions by following the link below:
</p>
<p>
<?php
echo
CHtml
::
link
(
'<i class="icon-share icon-white"></i> Get Yii-Bootstrap from Yii extensions'
,
'http://www.yiiframework.com/extension/bootstrap/'
,
array
(
'class'
=>
'btn btn-primary btn-large'
,
'target'
=>
'_blank'
));
?>
<?php
$this
->
widget
(
'bootstrap.widgets.TbButton'
,
array
(
'type'
=>
'primary'
,
'size'
=>
'large'
,
'icon'
=>
'download-alt white'
,
'label'
=>
'Download Yii-Bootstrap'
,
'url'
=>
'http://www.yiiframework.com/extension/bootstrap/'
,
'htmlOptions'
=>
array
(
'target'
=>
'_blank'
),
));
?>
</p>
<p>
Unzip the extension under
<strong>
protected/extensions/bootstrap
</strong>
and add the following code to your application configuration:
</p>
<p>
Unzip the extension under
<strong>
protected/extensions/bootstrap
</strong>
and modify your application configuration accordingly:
</p>
<p>
If you wish to use the provided Bootstrap theme copy the
<strong>
theme
</strong>
directory to your themes directory.
</p>
<?php
echo
$parser
->
safeTransform
(
"~~~
[php]
'preload'=>array(
....
.
'bootstrap', // preload the bootstrap component
),
'modules'=>
array(
.....
'gii
'=>array(
.....
'generatorPaths'=>array(
'bootstrap.gii',
),
),
),
'components'=>array(
.....
'bootstrap'=>array(
'class'=>'ext.bootstrap.components.Bootstrap', // assuming you extracted bootstrap under extensions
),
)
,
// Define a path alias for the Bootstrap extension as it's used internally.
// In this example we assume that you unzipped the extension under protected/extensions
.
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
return
array(
'theme'=>'bootstrap', // requires you to copy the theme under your themes directory
'modules
'=>array(
'gii'=>array(
'generatorPaths'=>array(
'bootstrap.gii',
),
),
),
'components'=>array(
'bootstrap'=>array(
'class'=>'bootstrap.components.Bootstrap',
),
),
)
;
~~~"
);
?>
<p>
You're done! Now you can start using Bootstrap in your application. For examples on how to use the widgets please visit the
<?php
echo
CHtml
::
link
(
'd
emo page
'
,
array
(
'site/index'
));
?>
.
<?php
echo
CHtml
::
link
(
'd
ocs
'
,
array
(
'site/index'
));
?>
.
</p>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment