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
b62b5557
Commit
b62b5557
authored
Apr 24, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the BootModal widget id in the demo (fixes #53)
parent
fb8c2544
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.php
demo/protected/views/site/index.php
+4
-4
No files found.
demo/protected/views/site/index.php
View file @
b62b5557
...
...
@@ -556,7 +556,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<h2>
Modals
</h2>
<?php
$this
->
beginWidget
(
'bootstrap.widgets.BootModal'
,
array
(
'id'
=>
'modal'
,
'id'
=>
'm
yM
odal'
,
'events'
=>
array
(
'show'
=>
"js:function() { console.log('Modal show.'); }"
,
'shown'
=>
"js:function() { console.log('Modal shown.'); }"
,
...
...
@@ -582,7 +582,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<?php
$this
->
endWidget
();
?>
<div
class=
"well"
>
<?php
echo
CHtml
::
link
(
'Click me'
,
'#modal'
,
array
(
<?php
echo
CHtml
::
link
(
'Click me'
,
'#m
yM
odal'
,
array
(
'class'
=>
'btn btn-primary'
,
'data-toggle'
=>
'modal'
,
));
?>
...
...
@@ -590,7 +590,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<h4>
Source code
</h4>
<?php
echo
$phpLighter
->
highlight
(
"<?php
\$
this->beginWidget('bootstrap.widgets.BootModal', array('id'=>'modal')); ?>
<?php
echo
$phpLighter
->
highlight
(
"<?php
\$
this->beginWidget('bootstrap.widgets.BootModal', array('id'=>'m
yM
odal')); ?>
<div class=
\"
modal-header
\"
>
<a class=
\"
close
\"
data-dismiss=
\"
modal
\"
>×</a>
...
...
@@ -617,7 +617,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
<?php
\$
this->endWidget(); ?>
<?php echo CHtml::link('Click me','#modal', array('class'=>'btn btn-primary', 'data-toggle'=>'modal')); ?>"
);
?>
<?php echo CHtml::link('Click me','#m
yM
odal', array('class'=>'btn btn-primary', 'data-toggle'=>'modal')); ?>"
);
?>
<a
class=
"top"
href=
"#top"
>
Back to top
↑
</a>
...
...
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