Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Dwoo renderer
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Dwoo renderer
Commits
6ecd5050
Commit
6ecd5050
authored
Feb 21, 2013
by
Hikonobu Kurihara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated
parent
d0e4bfc2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
EDwooViewRenderer.php
EDwooViewRenderer.php
+10
-3
No files found.
EDwooViewRenderer.php
View file @
6ecd5050
...
@@ -79,10 +79,17 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
...
@@ -79,10 +79,17 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
if
(
!
is_file
(
$sourceFile
)
||
(
$file
=
realpath
(
$sourceFile
))
===
false
)
if
(
!
is_file
(
$sourceFile
)
||
(
$file
=
realpath
(
$sourceFile
))
===
false
)
throw
new
CException
(
Yii
::
t
(
'yiiext'
,
'View file "{file}" does not exist.'
,
array
(
'{file}'
=>
$sourceFile
)));
throw
new
CException
(
Yii
::
t
(
'yiiext'
,
'View file "{file}" does not exist.'
,
array
(
'{file}'
=>
$sourceFile
)));
// edit by nakao from
// Create the compiler instance
$compiler
=
new
Dwoo_Compiler
();
$compiler
->
setAutoEscape
(
true
);
$compiler
->
setDelimiters
(
'{{'
,
'}}'
);
//render or return
//render or return
if
(
$return
)
if
(
$return
)
return
$this
->
dwoo
->
get
(
$sourceFile
,
$data
);
return
$this
->
dwoo
->
get
(
$sourceFile
,
$data
,
$compiler
);
else
else
$this
->
dwoo
->
get
(
$sourceFile
,
$data
,
null
,
true
);
$this
->
dwoo
->
get
(
$sourceFile
,
$data
,
$compiler
,
true
);
// edit by nakao to
}
}
}
}
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