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
dd454f90
Commit
dd454f90
authored
Nov 23, 2013
by
Hikonobu Kurihara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed
parent
e0c2b058
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
EDwoo2ViewRenderer.php
EDwoo2ViewRenderer.php
+14
-14
No files found.
EDwoo2ViewRenderer.php
View file @
dd454f90
...
...
@@ -71,15 +71,15 @@ class EDwoo2ViewRenderer extends CApplicationComponent implements IViewRenderer
}
/**
* Renders a view file.
* This method is required by {@link IViewRenderer}.
* @param CBaseController the controller or widget who is rendering the view file.
* @param string the view file path
* @param mixed the data to be passed to the view
* @param boolean whether the rendering result should be returned
* @return mixed the rendering result, or null if the rendering result is not needed.
*/
public
function
renderFile
(
$context
,
$sourceFile
,
$data
,
$return
)
{
* Renders a view file.
* This method is required by {@link IViewRenderer}.
* @param CBaseController the controller or widget who is rendering the view file.
* @param string the view file path
* @param mixed the data to be passed to the view
* @param boolean whether the rendering result should be returned
* @return mixed the rendering result, or null if the rendering result is not needed.
*/
public
function
renderFile
(
$context
,
$sourceFile
,
$data
,
$return
)
{
// current controller properties will be accessible as {this.property}
$data
[
'this'
]
=
$context
;
$data
[
'Yii'
]
=
Yii
::
app
();
...
...
@@ -95,9 +95,9 @@ class EDwoo2ViewRenderer extends CApplicationComponent implements IViewRenderer
$compiler
->
setDelimiters
(
$this
->
delimiters
[
0
],
$this
->
delimiters
[
1
]);
//render or return
if
(
$return
)
return
$this
->
dwoo
->
get
(
$sourceFile
,
$data
);
else
$this
->
dwoo
->
get
(
$sourceFile
,
$data
,
null
,
true
);
}
if
(
$return
)
return
$this
->
dwoo
->
get
(
$sourceFile
,
$data
,
$compiler
);
else
$this
->
dwoo
->
get
(
$sourceFile
,
$data
,
$compiler
,
true
);
}
}
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