Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
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
夏彬
yii2bootstrap
Commits
8dc09656
Commit
8dc09656
authored
Feb 22, 2015
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved extensions readme
parent
af70660f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
README.md
README.md
+16
-9
No files found.
README.md
View file @
8dc09656
Twitter Bootstrap Extension for Yii 2
=====================================
This is the Twitter Bootstrap extension for Yii 2. It encapsulates
Bootstrap
components
This is the Twitter Bootstrap extension for Yii 2. It encapsulates
[
Bootstrap
](
http://getbootstrap.com/
)
components
and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins
in Yii applications extremely easy. For example, the following
single line of code in a view file would render a Bootstrap Progress plugin:
```
php
<?=
yii\bootstrap\Progress
::
widget
([
'percent'
=>
60
,
'label'
=>
'test'
])
?>
```
in Yii applications extremely easy.
This repository is a git submodule of
<https://github.com/yiisoft/yii2>
.
Please submit issue reports and pull requests to the main repository.
For license information check the
[
LICENSE
](
LICENSE.md
)
-file.
Installation
------------
...
...
@@ -19,14 +17,23 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run
```
php composer.phar require --prefer-dist yiisoft/yii2-bootstrap
"*"
php composer.phar require --prefer-dist yiisoft/yii2-bootstrap
```
or add
```
"yiisoft/yii2-bootstrap": "
*
"
"yiisoft/yii2-bootstrap": "
~2.0.0
"
```
to the require section of your
`composer.json`
file.
Usage
----
For example, the following
single line of code in a view file would render a Bootstrap Progress plugin:
```
php
<?=
yii\bootstrap\Progress
::
widget
([
'percent'
=>
60
,
'label'
=>
'test'
])
?>
```
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