Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b6e3dd29
Commit
b6e3dd29
authored
Aug 14, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started bootstrap docs
parent
075bd7ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
4 deletions
+58
-4
bootstrap-widgets.md
docs/guide/bootstrap-widgets.md
+58
-4
No files found.
docs/guide/bootstrap-widgets.md
View file @
b6e3dd29
Twitter
Bootstrap widgets
Bootstrap widgets
=================
========
=================
Overview
Yii includes support of
[
Bootstrap 3
](
http://getbootstrap.com/
)
markup and components framework out of the box. It is an
--------
excellent framework that allows you to speed up development a lot.
Bootstrap is generally about two parts:
-
Basics such as grid system, typography, helper classes and responsive utilities.
-
Ready to use components such as menus, pagination, modal boxes, tabs etc.
Basics
------
Yii doesn't wrap bootstrap basics into PHP code since HTML is very simple by itself in this case. You can find details
about using the basics at
[
bootstrap documentation website
](
http://getbootstrap.com/css/
)
. Still Yii provides a
convenient way to include bootstrap assets in your pages with a single line added to
`AppAsset.php`
located in your
`config`
directory:
```
php
public
$depends
=
array
(
'yii\web\YiiAsset'
,
'yii\bootstrap\BootstrapAsset'
,
// this line
);
```
Using bootstrap through Yii asset manager allows you to combine and minimize its resources with your own ones when
needed.
Yii widgets
-----------
Most complex bootstrap components are wrapped into Yii widgets to allow more robust syntax and integrate with
framework features. All widgets belong to
`\yii\bootstrap`
namespace. Let's review these.
### Alert
### Button
### ButtonDropdown
### ButtonGroup
### Carousel
### Collapse
### Dropdown
### Modal
### Nav
### NavBar
### Progress
### Tabs
### Typeahead
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