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
9a13ddb8
Commit
9a13ddb8
authored
May 24, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved Smarty and Twig renderers into extensions
parent
82a2476e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
5 deletions
+59
-5
composer.json
extensions/smarty/composer.json
+27
-0
ViewRenderer.php
extensions/smarty/yii/smarty/ViewRenderer.php
+3
-3
composer.json
extensions/twig/composer.json
+27
-0
ViewRenderer.php
extensions/twig/yii/twig/ViewRenderer.php
+2
-2
No files found.
extensions/smarty/composer.json
0 → 100644
View file @
9a13ddb8
{
"name"
:
"yiisoft/yii2-smarty"
,
"description"
:
"The Smarty integration for the Yii framework"
,
"keywords"
:
[
"yii"
,
"smarty"
,
"renderer"
],
"type"
:
"library"
,
"license"
:
"BSD-3-Clause"
,
"support"
:
{
"issues"
:
"https://github.com/yiisoft/yii2/issues?state=open"
,
"forum"
:
"http://www.yiiframework.com/forum/"
,
"wiki"
:
"http://www.yiiframework.com/wiki/"
,
"irc"
:
"irc://irc.freenode.net/yii"
,
"source"
:
"https://github.com/yiisoft/yii2"
},
"authors"
:
[
{
"name"
:
"Alenxader Makarov"
,
"email"
:
"sam@rmcreative.ru"
}
],
"minimum-stability"
:
"dev"
,
"require"
:
{
"yiisoft/yii2"
:
"*"
},
"autoload"
:
{
"psr-0"
:
{
"yii
\\
smarty"
:
""
}
}
}
framework/yii/renderers/Smarty
ViewRenderer.php
→
extensions/smarty/yii/smarty/
ViewRenderer.php
View file @
9a13ddb8
...
...
@@ -7,13 +7,13 @@
* @license http://www.yiiframework.com/license/
*/
namespace
yii\
renderers
;
namespace
yii\
smarty
;
use
Yii
;
use
Smarty
;
use
yii\base\View
;
use
yii\base\ViewRenderer
;
use
yii\helpers\Html
;
use
yii\base\ViewRenderer
as
BaseViewRenderer
;
/**
* SmartyViewRenderer allows you to use Smarty templates in views.
...
...
@@ -21,7 +21,7 @@ use yii\helpers\Html;
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
*/
class
SmartyViewRenderer
extends
ViewRenderer
class
ViewRenderer
extends
Base
ViewRenderer
{
/**
* @var string the directory or path alias pointing to where Smarty cache will be stored.
...
...
extensions/twig/composer.json
0 → 100644
View file @
9a13ddb8
{
"name"
:
"yiisoft/yii2-twig"
,
"description"
:
"The Twig integration for the Yii framework"
,
"keywords"
:
[
"yii"
,
"twig"
,
"renderer"
],
"type"
:
"library"
,
"license"
:
"BSD-3-Clause"
,
"support"
:
{
"issues"
:
"https://github.com/yiisoft/yii2/issues?state=open"
,
"forum"
:
"http://www.yiiframework.com/forum/"
,
"wiki"
:
"http://www.yiiframework.com/wiki/"
,
"irc"
:
"irc://irc.freenode.net/yii"
,
"source"
:
"https://github.com/yiisoft/yii2"
},
"authors"
:
[
{
"name"
:
"Alenxader Makarov"
,
"email"
:
"sam@rmcreative.ru"
}
],
"minimum-stability"
:
"dev"
,
"require"
:
{
"yiisoft/yii2"
:
"*"
},
"autoload"
:
{
"psr-0"
:
{
"yii
\\
twig"
:
""
}
}
}
framework/yii/renderers/Twig
ViewRenderer.php
→
extensions/twig/yii/twig/
ViewRenderer.php
View file @
9a13ddb8
...
...
@@ -11,7 +11,7 @@ namespace yii\renderers;
use
Yii
;
use
yii\base\View
;
use
yii\base\ViewRenderer
;
use
yii\base\ViewRenderer
as
BaseViewRenderer
;
use
yii\helpers\Html
;
/**
...
...
@@ -20,7 +20,7 @@ use yii\helpers\Html;
* @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0
*/
class
TwigViewRenderer
extends
ViewRenderer
class
ViewRenderer
extends
Base
ViewRenderer
{
/**
* @var string the directory or path alias pointing to where Twig cache will be stored.
...
...
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