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
f9aaf1f2
Commit
f9aaf1f2
authored
Dec 16, 2013
by
Hikonobu Kurihara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dwoo Coreのパスを変更可能にした
parent
6ecd5050
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
EDwooViewRenderer.php
EDwooViewRenderer.php
+4
-2
No files found.
EDwooViewRenderer.php
View file @
f9aaf1f2
...
...
@@ -13,6 +13,8 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
public
$filePermission
=
0755
;
public
$pluginsDir
=
null
;
public
$dwooLibPath
=
'application.vendors.Dwoo.lib.*'
;
/**
* @var Dwoo
*/
...
...
@@ -22,13 +24,13 @@ class EDwooViewRenderer extends CApplicationComponent implements IViewRenderer {
* Component initialization
*/
function
init
(){
Yii
::
import
(
'application.vendors.*'
);
Yii
::
import
(
$this
->
dwooLibPath
);
// need this since Yii autoload handler raises an error if class is not found
spl_autoload_unregister
(
array
(
'YiiBase'
,
'autoload'
));
// registering Dwoo autoload handler
require_once
'
Dwoo/
dwooAutoload.php'
;
require_once
'dwooAutoload.php'
;
// adding back Yii autoload handler
spl_autoload_register
(
array
(
'YiiBase'
,
'autoload'
));
...
...
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