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
7037ef8f
Commit
7037ef8f
authored
Feb 09, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some unused code from BootWidget and updated the test page.
parent
5834a2cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
31 deletions
+1
-31
index.php
demo/protected/views/site/index.php
+1
-1
BootWidget.php
widgets/BootWidget.php
+0
-30
No files found.
demo/protected/views/site/index.php
View file @
7037ef8f
...
...
@@ -325,7 +325,7 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
'columns'
=>
$gridColumns
,
));
?>
<h3>
Striped
</h3>
<h3>
Striped
</h3>
moi
<?php
$this
->
widget
(
'bootstrap.widgets.BootGridView'
,
array
(
'dataProvider'
=>
$gridDataProvider
,
...
...
widgets/BootWidget.php
View file @
7037ef8f
...
...
@@ -9,7 +9,6 @@
/**
* Bootstrap base widget.
* Used for registering required scripts and defining default properties.
*/
class
BootWidget
extends
CWidget
{
...
...
@@ -25,33 +24,4 @@ class BootWidget extends CWidget
* @var array the HTML attributes for the widget container.
*/
public
$htmlOptions
=
array
();
/**
* Initializes the widget.
*/
public
function
init
()
{
Yii
::
app
()
->
clientScript
->
registerCoreScript
(
'jquery'
);
}
/**
* Registers a JavaScript file under Bootstrap.
* @param string $fileName the name of the JavaScript file
* @param integer $position the position of the JavaScript file
*/
protected
function
registerScriptFile
(
$fileName
,
$position
=
CClientScript
::
POS_HEAD
)
{
Yii
::
app
()
->
bootstrap
->
registerScriptFile
(
$fileName
,
$position
);
}
/**
* Registers a piece of javascript code.
* @param string $id ID that uniquely identifies this piece of JavaScript code
* @param string $script the javascript code
* @param integer $position the position of the JavaScript code
*/
protected
function
registerScript
(
$id
,
$script
,
$position
=
CClientScript
::
POS_END
)
{
Yii
::
app
()
->
clientScript
->
registerScript
(
$id
,
$script
,
$position
);
}
}
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