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
58eb23d3
Commit
58eb23d3
authored
Aug 03, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #708 from lucianobaraglia/master
Minor doc and messages fixes [skip ci]
parents
b31b02a5
8760407c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
Carousel.php
framework/yii/bootstrap/Carousel.php
+1
-1
Collapse.php
framework/yii/bootstrap/Collapse.php
+3
-3
Nav.php
framework/yii/bootstrap/Nav.php
+1
-1
NavBar.php
framework/yii/bootstrap/NavBar.php
+1
-1
Progress.php
framework/yii/bootstrap/Progress.php
+1
-1
Tabs.php
framework/yii/bootstrap/Tabs.php
+1
-1
DetailView.php
framework/yii/widgets/DetailView.php
+3
-3
No files found.
framework/yii/bootstrap/Carousel.php
View file @
58eb23d3
...
...
@@ -55,7 +55,7 @@ class Carousel extends Widget
* // required, slide content (HTML), such as an image tag
* 'content' => '<img src="http://twitter.github.io/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg"/>',
* // optional, the caption (HTML) of the slide
* 'caption'=> '<h4>This is title</h4><p>This is the caption text</p>',
* 'caption'
=> '<h4>This is title</h4><p>This is the caption text</p>',
* // optional the HTML attributes of the slide container
* 'options' => array(),
* )
...
...
framework/yii/bootstrap/Collapse.php
View file @
58eb23d3
...
...
@@ -23,7 +23,7 @@ use yii\helpers\Html;
* 'Collapsible Group Item #1' => array(
* 'content' => 'Anim pariatur cliche...',
* // open its content by default
* 'contentOptions' => array('class'
=>
'in')
* 'contentOptions' => array('class'
=>
'in')
* ),
* // another group item
* 'Collapsible Group Item #2' => array(
...
...
@@ -51,9 +51,9 @@ class Collapse extends Widget
* // required, the content (HTML) of the group
* 'content' => 'Anim pariatur cliche...',
* // optional the HTML attributes of the content group
* 'contentOptions'=> array(),
* 'contentOptions'
=> array(),
* // optional the HTML attributes of the group
* 'options'=> array(),
* 'options'
=> array(),
* )
* ```
*/
...
...
framework/yii/bootstrap/Nav.php
View file @
58eb23d3
...
...
@@ -136,7 +136,7 @@ class Nav extends Widget
if
(
is_array
(
$items
))
{
$items
=
Dropdown
::
widget
(
array
(
'items'
=>
$items
,
'encodeLabels'
=>
$this
->
encodeLabels
,
'encodeLabels'
=>
$this
->
encodeLabels
,
'clientOptions'
=>
false
,
));
}
...
...
framework/yii/bootstrap/NavBar.php
View file @
58eb23d3
...
...
@@ -87,7 +87,7 @@ class NavBar extends Widget
* // optional, the menu item class type of the widget to render. Defaults to "Nav" widget.
* 'class' => 'Menu item class type',
* // required, the configuration options of the widget.
* 'options'=> array(...),
* 'options'
=> array(...),
* ),
* // optionally, you can pass a string
* '<form class="navbar-search pull-left" action="">' .
...
...
framework/yii/bootstrap/Progress.php
View file @
58eb23d3
...
...
@@ -47,7 +47,7 @@ use yii\helpers\Html;
* echo Progress::widget(array(
* 'bars' => array(
* array('percent' => 30, 'options' => array('class' => 'bar-danger')),
* array('percent' => 30, 'label'
=>
'test', 'options' => array('class' => 'bar-success')),
* array('percent' => 30, 'label'
=>
'test', 'options' => array('class' => 'bar-success')),
* array('percent' => 35, 'options' => array('class' => 'bar-warning'))
* )
* ));
...
...
framework/yii/bootstrap/Tabs.php
View file @
58eb23d3
...
...
@@ -28,7 +28,7 @@ use yii\helpers\Html;
* 'label' => 'Two',
* 'content' => 'Anim pariatur cliche...',
* 'headerOptions' => array(...),
* 'options' => array('id'
=>
'myveryownID'),
* 'options' => array('id'
=>
'myveryownID'),
* ),
* array(
* 'label' => 'Dropdown',
...
...
framework/yii/widgets/DetailView.php
View file @
58eb23d3
...
...
@@ -21,7 +21,7 @@ use yii\helpers\Inflector;
* DetailView displays the detail of a single data [[model]].
*
* DetailView is best used for displaying a model in a regular format (e.g. each model attribute
* is displayed as a row in a table.) The model can be either an instance of [[Model]]
or
* is displayed as a row in a table.) The model can be either an instance of [[Model]]
* or an associative array.
*
* DetailView uses the [[attributes]] property to determines which model attributes
...
...
@@ -105,7 +105,7 @@ class DetailView extends Widget
public
function
init
()
{
if
(
$this
->
model
===
null
)
{
throw
new
InvalidConfigException
(
'Please specify the "
data
" property.'
);
throw
new
InvalidConfigException
(
'Please specify the "
model
" property.'
);
}
if
(
$this
->
formatter
==
null
)
{
$this
->
formatter
=
Yii
::
$app
->
getFormatter
();
...
...
@@ -166,7 +166,7 @@ class DetailView extends Widget
}
elseif
(
is_array
(
$this
->
model
))
{
$this
->
attributes
=
array_keys
(
$this
->
model
);
}
else
{
throw
new
InvalidConfigException
(
'The "
data
" property must be either an array or an object.'
);
throw
new
InvalidConfigException
(
'The "
model
" property must be either an array or an object.'
);
}
sort
(
$this
->
attributes
);
}
...
...
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