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
c16bd756
Commit
c16bd756
authored
May 24, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed Modal::body.
parent
21533ad3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
Modal.php
framework/yii/bootstrap/Modal.php
+1
-19
No files found.
framework/yii/bootstrap/Modal.php
View file @
c16bd756
...
@@ -14,18 +14,6 @@ use yii\helpers\Html;
...
@@ -14,18 +14,6 @@ use yii\helpers\Html;
/**
/**
* Modal renders a modal window that can be toggled by clicking on a button.
* Modal renders a modal window that can be toggled by clicking on a button.
*
*
* For example,
*
* ~~~php
* echo Modal::widget(array(
* 'header' => '<h2>Hello world</h2>',
* 'body' => 'Say hello...',
* 'toggleButton' => array(
* 'label' => 'click me',
* ),
* ));
* ~~~
*
* The following example will show the content enclosed between the [[begin()]]
* The following example will show the content enclosed between the [[begin()]]
* and [[end()]] calls within the modal window:
* and [[end()]] calls within the modal window:
*
*
...
@@ -54,12 +42,6 @@ class Modal extends Widget
...
@@ -54,12 +42,6 @@ class Modal extends Widget
*/
*/
public
$header
;
public
$header
;
/**
/**
* @var string the body content in the modal window. Note that anything between
* the [[begin()]] and [[end()]] calls of the Modal widget will also be treated
* as the body content, and will be rendered before this.
*/
public
$body
;
/**
* @var string the footer content in the modal window.
* @var string the footer content in the modal window.
*/
*/
public
$footer
;
public
$footer
;
...
@@ -154,7 +136,7 @@ class Modal extends Widget
...
@@ -154,7 +136,7 @@ class Modal extends Widget
*/
*/
protected
function
renderBodyEnd
()
protected
function
renderBodyEnd
()
{
{
return
$this
->
body
.
"
\n
"
.
Html
::
endTag
(
'div'
);
return
Html
::
endTag
(
'div'
);
}
}
/**
/**
...
...
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