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
b90a059a
Commit
b90a059a
authored
Aug 01, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the demo setup page
parent
9f63f65e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
setup.php
demo/protected/views/site/setup.php
+15
-19
No files found.
demo/protected/views/site/setup.php
View file @
b90a059a
...
@@ -35,7 +35,7 @@ $this->addMetaProperty('fb:app_id', Yii::app()->fb->appID);
...
@@ -35,7 +35,7 @@ $this->addMetaProperty('fb:app_id', Yii::app()->fb->appID);
'gii'=>array(
'gii'=>array(
.....
.....
'generatorPaths'=>array(
'generatorPaths'=>array(
'bootstrap.gii',
// since 0.9.1
'bootstrap.gii',
),
),
),
),
),
),
...
@@ -70,43 +70,39 @@ $this->addMetaProperty('fb:app_id', Yii::app()->fb->appID);
...
@@ -70,43 +70,39 @@ $this->addMetaProperty('fb:app_id', Yii::app()->fb->appID);
If you haven't tried LESS yet now is the time, you won't be disappointed. LESS is a dynamic stylesheet language
If you haven't tried LESS yet now is the time, you won't be disappointed. LESS is a dynamic stylesheet language
that extends CSS with dynamic behavior such as variable, mixins, operations and functions. Bootstrap itself is
that extends CSS with dynamic behavior such as variable, mixins, operations and functions. Bootstrap itself is
written in LESS and comes with a wide variety of useful mixins, operations and functions that you can use in your
written in LESS and comes with a wide variety of useful mixins, operations and functions that you can use in your
own LESS.
own LESS
files
.
</p>
</p>
<p>
<p>
The easiest way to use LESS is to include
<?php
echo
CHtml
::
link
(
'the native JavaScript compiler'
,
'http://www.lesscss.org'
);
?>
.
The easiest way to use LESS is to include
<?php
echo
CHtml
::
link
(
'the native JavaScript compiler'
,
'http://www.lesscss.org'
);
?>
.
Alternatively you can use my
<?php
echo
CHtml
::
link
(
'LESS extension'
,
'http://www.yiiframework.com/extension/less'
);
?>
Alternatively you can use my
<?php
echo
CHtml
::
link
(
'LESS extension'
,
'http://www.yiiframework.com/extension/less'
);
?>
which uses
<?php
echo
CHtml
::
link
(
'
Agar\'s PHP LESS compiler'
,
'https://github.com/agar/less.php
'
);
?>
.
which uses
<?php
echo
CHtml
::
link
(
'
Leafo\'s PHP LESS compiler'
,
'http://leafo.net/lessphp/
'
);
?>
.
When you have set up the LESS compiler of your choice create a
<strong>
less
</strong>
folder under your webroot
When you have set up the LESS compiler of your choice create a
<strong>
less
</strong>
folder under your webroot
and create a
<strong>
styles.less
</strong>
file with the following content:
and create a
<strong>
styles.less
</strong>
file with the following content:
</p>
</p>
<?php
echo
$parser
->
safeTransform
(
"~~~
<?php
echo
$parser
->
safeTransform
(
"~~~
[css]
[css]
/*
// Imports
IMPORTS
// -------
*/
// Import the Bootstrap mixins, operations and functions so that you can use them in this file.
// Import the Bootstrap mixins, operations and functions so that you can use them in this file.
@import
\"
../protected/extensions/bootstrap/lib/bootstrap/less/mixins.less
\"
;
@import
\"
../protected/extensions/bootstrap/lib/bootstrap/less/mixins.less
\"
;
/*
// Variables
VARIABLES
// ---------
*/
// Your variables goes here ...
// Your variables goes here ...
/*
// Mixins
MIXINS
// ------
*/
// Your mixins goes here ...
// Your mixins goes here ...
/*
// Styles
RULES
// ------
*/
// Your
ru
les goes here ...
// Your
sty
les goes here ...
~~~"
);
?>
~~~"
);
?>
<p>
<p>
...
@@ -154,7 +150,7 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array(
...
@@ -154,7 +150,7 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array(
<p>
<p>
That's it! The Typeahead is now bound to all elements with the class
<strong>
typehead
</strong>
.
That's it! The Typeahead is now bound to all elements with the class
<strong>
typehead
</strong>
.
There are similar methods for each plugin that can be used to register them from anywhere in your application.
There are similar methods for each plugin that can be used to register them from anywhere in your application.
All these methods take two arguments, the CSS selector and options for the jQuery plugin.
All these
API
methods take two arguments, the CSS selector and options for the jQuery plugin.
</p>
</p>
</section>
</section>
...
@@ -173,11 +169,11 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array(
...
@@ -173,11 +169,11 @@ Yii::app()->bootstrap->registerTypeahead('.typeahead', array(
'fixed'
=>
'top'
,
'fixed'
=>
'top'
,
'brand'
=>
false
,
'brand'
=>
false
,
'collapse'
=>
true
,
'collapse'
=>
true
,
'subnav'
=>
true
,
'htmlOptions'
=>
array
(
'class'
=>
'subnav'
)
,
'items'
=>
array
(
'items'
=>
array
(
array
(
array
(
'class'
=>
'bootstrap.widgets.TbMenu'
,
'class'
=>
'bootstrap.widgets.TbMenu'
,
'scrollspy'
=>
'.navbar
-subnav
'
,
'scrollspy'
=>
'.navbar'
,
'items'
=>
array
(
'items'
=>
array
(
array
(
'label'
=>
'Setup'
,
'url'
=>
'#setup'
),
array
(
'label'
=>
'Setup'
,
'url'
=>
'#setup'
),
array
(
'label'
=>
'Configuration'
,
'url'
=>
'#config'
),
array
(
'label'
=>
'Configuration'
,
'url'
=>
'#config'
),
...
...
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