Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5.1
-
Fix Version/s: Next Major Release
-
Component/s: Zend_View
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
Brandon Clark raised a good point in off-list e-mail and we came up with a solution that would help people creating alternate adapters for Zend_View (e.g., Zend_View_PhpTal).
Because PHPTAL templates only have access to the variables passed to them (and no reference to the Zend_View_Interface instance), calling helpers requires either:
1) Explicitly assigning $this to a template variable, which breaks encapsulation, or
2) Having Zend_View_Abstract::$_helper be a reference to a Zend_View_HelperBroker object, like the action controllers have Zend_Controller_Action_HelperBroker.
This seems like a logical split to me. Thoughts?
Can you provide either some inline code samples or a link to some samples showing why this is necessary? It's hard to gauge from your description.
Thanks!