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
31e1afc1
Commit
31e1afc1
authored
Jun 19, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed `TwigSimpleFileLoader` into `FileLoader`
parent
0ec2e2e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
extensions/twig/CHANGELOG.md
+1
-0
FileLoader.php
extensions/twig/FileLoader.php
+1
-1
ViewRenderer.php
extensions/twig/ViewRenderer.php
+1
-1
No files found.
extensions/twig/CHANGELOG.md
View file @
31e1afc1
...
...
@@ -8,6 +8,7 @@ Yii Framework 2 twig extension Change Log
-
Bug #3767: Fixed repeated adding of extensions when using config. One may now pass extension instances as well (grachov)
-
Bug #3877: Fixed
`lexerOptions`
throwing exception (dapatrese)
-
Enh #1799: Added
`form_begin`
,
`form_end`
to twig extension (samdark)
-
Chg: Renamed
`TwigSimpleFileLoader`
into
`FileLoader`
(samdark)
2.
0.0-beta April 13, 2014
-------------------------
...
...
extensions/twig/
TwigSimple
FileLoader.php
→
extensions/twig/FileLoader.php
View file @
31e1afc1
...
...
@@ -12,7 +12,7 @@ namespace yii\twig;
*
* @author dev-mraj <dev.meghraj@gmail.com>
*/
class
TwigSimple
FileLoader
implements
\Twig_LoaderInterface
class
FileLoader
implements
\Twig_LoaderInterface
{
/**
* @var string Path to directory
...
...
extensions/twig/ViewRenderer.php
View file @
31e1afc1
...
...
@@ -147,7 +147,7 @@ class ViewRenderer extends BaseViewRenderer
public
function
render
(
$view
,
$file
,
$params
)
{
$this
->
twig
->
addGlobal
(
'this'
,
$view
);
$this
->
twig
->
setLoader
(
new
TwigSimple
FileLoader
(
dirname
(
$file
)));
$this
->
twig
->
setLoader
(
new
FileLoader
(
dirname
(
$file
)));
return
$this
->
twig
->
render
(
pathinfo
(
$file
,
PATHINFO_BASENAME
),
$params
);
}
...
...
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