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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
da388050
Commit
da388050
authored
Nov 03, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated extension README files.
parent
41a44275
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
127 deletions
+57
-127
README.md
extensions/composer/README.md
+0
-2
README.md
extensions/jui/README.md
+11
-35
README.md
extensions/smarty/README.md
+22
-45
README.md
extensions/twig/README.md
+24
-45
No files found.
extensions/composer/README.md
View file @
da388050
Yii 2 Composer Installer
========================
[
![Build Status
](
https://secure.travis-ci.org/yiisoft/yii2.png
)
](http://travis-ci.org/yiisoft/yii2)
This is the composer installer for Yii 2 extensions. It implements a new composer package type named
`yii2-extension`
,
which should be used by all Yii 2 extensions if they are distributed as composer packages.
...
...
extensions/jui/README.md
View file @
da388050
Yii 2.0 Public Preview - JUI Extension
=======================
===============
JUI Extension for Yii 2
=======================
Thank you for choosing Yii - a high-performance component-based PHP framework.
This is the JQuery UI extension for Yii 2. It encapsulates JQuery UI widgets as Yii widgets,
and makes using JQuery UI widgets in Yii applications extremely easy. For example, the following
single line of code in a view file would render a JQuery UI DatePicker widget:
If you are looking for a production-ready PHP framework, please use
[
Yii v1.1
](
https://github.com/yiisoft/yii
)
.
Yii 2.0 is still under heavy development. We may make significant changes
without prior notices.
**Yii 2.0 is not ready for production use yet.**
[
![Build Status
](
https://secure.travis-ci.org/yiisoft/yii2.png
)
](http://travis-ci.org/yiisoft/yii2)
This is the yii2-jui extension.
```
php
<?=
yii\jui\DatePicker
::
widget
([
'name'
=>
'start'
])
?>
```
Installation
...
...
@@ -20,36 +16,16 @@ Installation
The preferred way to install this extension is
[
composer
](
http://getcomposer.org/download/
)
.
Either run
```
php composer.phar require yiisoft/yii2-jui "*"
```
or add
```
"yiisoft/yii2-jui": "*"
```
to the require section of your composer.json.
*Note: You might have to run `php composer.phar selfupdate`*
Usage & Documentation
---------------------
This extension provides multiple widgets to work with jquery.ui, as well as a set of compatible jquery.ui files.
You can use these widgets in your view files after you have registered the corresponding assets.
Example:
```
php
echo
ProgressBar
::
widget
([
'clientOptions'
=>
[
'value'
=>
75
,
],
]);
```
For further instructions refer to the yii guid
e.
to the require section of your
`composer.json`
fil
e.
extensions/smarty/README.md
View file @
da388050
Yii 2.0 Public Preview - Smarty View Renderer
==========================
===================
Smarty Extension for Yii 2
==========================
Th
ank you for choosing Yii - a high-performance component-based PHP framework
.
Th
is extension provides a
`ViewRender`
that would allow you to use Smarty view template engine
.
If you are looking for a production-ready PHP framework, please use
[
Yii v1.1
](
https://github.com/yiisoft/yii
)
.
Yii 2.0 is still under heavy development. We may make significant changes
without prior notices.
**Yii 2.0 is not ready for production use yet.**
[
![Build Status
](
https://secure.travis-ci.org/yiisoft/yii2.png
)
](http://travis-ci.org/yiisoft/yii2)
This is the yii2-smarty extension.
Installation
------------
The prefered way to install this extension is through
[
composer
](
http://getcomposer.org/download/
)
.
Either run
```
php composer.phar require yiisoft/yii2-smarty "*"
```
or add
```
json
"yiisoft/yii2-smarty"
:
"*"
```
to the require section of your composer.json.
*Note: You might have to run `php composer.phar selfupdate`*
Usage & Documentation
---------------------
This extension has to be registered prior to usage.
To enable this view renderer add it to the $rendereres property of your view object.
Example:
To use this extension, simply add the following code in your application configuration:
```
php
<?php
// config.php
return
[
//....
'components'
=>
[
'view'
=>
[
'class'
=>
'yii\base\View'
,
'renderers'
=>
[
'tpl'
=>
[
'class'
=>
'yii\smarty\ViewRenderer'
,
...
...
@@ -61,4 +21,21 @@ return [
];
```
For further instructions refer to the related section in the yii guide.
Installation
------------
The preferred way to install this extension is through
[
composer
](
http://getcomposer.org/download/
)
.
Either run
```
php composer.phar require yiisoft/yii2-smarty "*"
```
or add
```
json
"yiisoft/yii2-smarty"
:
"*"
```
to the require section of your composer.json.
extensions/twig/README.md
View file @
da388050
Yii 2.0 Public Preview - Twig View Renderer
========================
===================
Twig Extension for Yii 2
========================
Th
ank you for choosing Yii - a high-performance component-based PHP framework
.
Th
is extension provides a
`ViewRender`
that would allow you to use Twig view template engine
.
If you are looking for a production-ready PHP framework, please use
[
Yii v1.1
](
https://github.com/yiisoft/yii
)
.
To use this extension, simply add the following code in your application configuration:
Yii 2.0 is still under heavy development. We may make significant changes
without prior notices.
**Yii 2.0 is not ready for production use yet.**
[
![Build Status
](
https://secure.travis-ci.org/yiisoft/yii2.png
)
](http://travis-ci.org/yiisoft/yii2)
This is the yii2-twig extension.
Installation
------------
The prefered way to install this extension is through
[
composer
](
http://getcomposer.org/download/
)
.
Either run
```
php composer.phar require yiisoft/yii2-twig "*"
```
or add
```
"yiisoft/yii2-twig": "*"
```
to the require section of your composer.json.
*Note: You might have to run `php composer.phar selfupdate`*
Usage & Documentation
---------------------
This extension has to be registered prior to usage.
To enable this view renderer add it to the $rendereres property of your view object.
Example:
```
php
<?php
// config.php
return
[
//....
'components'
=>
[
'view'
=>
[
'class'
=>
'yii\base\View'
,
'renderers'
=>
[
't
wig
'
=>
[
't
pl
'
=>
[
'class'
=>
'yii\twig\ViewRenderer'
,
//'cachePath' => '@runtime/Twig/cache',
//'options' => [], /* Array of twig options */
...
...
@@ -61,4 +22,22 @@ return [
];
```
For further instructions refer to the related section in the yii guide.
Installation
------------
The preferred way to install this extension is through
[
composer
](
http://getcomposer.org/download/
)
.
Either run
```
php composer.phar require yiisoft/yii2-twig "*"
```
or add
```
"yiisoft/yii2-twig": "*"
```
to the require section of your composer.json.
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