Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
2d5431e2
Commit
2d5431e2
authored
Aug 13, 2008
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Added some details to the ZF Adapter README, thanks Stephan Wentz
git-svn-id:
svn://dwoo.org/dwoo/trunk@147
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
959b4e63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
README
lib/Dwoo/Adapters/ZendFramework/README
+16
-2
No files found.
lib/Dwoo/Adapters/ZendFramework/README
View file @
2d5431e2
...
@@ -9,11 +9,24 @@
...
@@ -9,11 +9,24 @@
// If anyone writes a more advanced how-to please let me know
// If anyone writes a more advanced how-to please let me know
// ------------------------
// ------------------------
$view
Interface
= new Dwoo_Adapters_ZendFramework_View(array(
$view = new Dwoo_Adapters_ZendFramework_View(array(
'compile_dir' => 'path/to/compile_dir' // set to null or remove this line to use defaults
'compile_dir' => 'path/to/compile_dir' // set to null or remove this line to use defaults
'cache_dir' => 'path/to/cache_dir' // set to null or remove this line to use defaults
'cache_dir' => 'path/to/cache_dir' // set to null or remove this line to use defaults
));
));
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($viewInterface);
// This allows you to use ZF's helpers as if they were Dwoo plugins (i.e. {doctype} will call the doctype helper)
$view->setPluginProxy(new Dwoo_Adapters_ZendFramework_PluginProxy(new Zend_View()));
// 1. example - used with the Zend Controller
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
// 2. example - used manually
$view->assign('foo', 'bar');
$view->display('foobar.phtml');
\ No newline at end of file
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