Added by Satoru Yoshida, last edited by Satoru Yoshida on May 15, 2008  (view change)

Labels

 
(None)

Zend Framework: Zend_View_Wrapper_Smarty Component Proposal

Proposed Component Name Zend_View_Wrapper_Smarty
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_View_Wrapper_Smarty
Proposers Satoru Yoshida
Revision 0.1 - 22 Nov 2007: Create Proposal.
15 May 2008: Remove section number from "Using Alternate Template Systems" (wiki revision: 6)

Table of Contents

1. Overview

Zend_View_Wrapper_Smarty is a wrapper up Smarty.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will provide methods and properties to controll variables, and caching.
  • This component will not provide methods nor properties for ViewRenderer.
  • This component will be one of wrappers. So I do not name this component Zend_View_Smarty, but Zend_View_Wrapper_Smarty.

4. Dependencies on Other Framework Components

  • Zend_Exception
  • Zend_View_Interface

5. Theory of Operation

  • At First, You are ready to use this component with instantiation.
    • As necessary, You use some methods, for example, setBasePath(), or setCacheType().
  • At second, You can assign variables by assign() or assingByRef().
  • At last, You get output by render() or output().

6. Milestones / Tasks

  • Milestone 1: Class development and write proposal
  • Milestone 2: Unit tests and debugging
  • Milestone 3: Documentation

7. Class Index

  • Zend_View_Wrapper_Exception
  • Zend_View_Wrapper_Smarty

8. Use Cases

UC-01

UC-02

9. Class Skeletons

Satoru, is this proposal ready for community review?

,Wil

Hello, Wil. Yes, I believe it is ready. I announced ML about MVC in 27th Nov 2007, but I have no responces.

It should be moved to 'Ready for Review'. When you do this, I suggest you announce it to the mailing list again. People may not realize that the first draft is complete.

,Wil

Nice.. how will helpers be added?
Or will those be wrapped to so you can register_block's, register_modifiers, register_function based on the Helper?

Is this proposal still active?

  • Are there possible integration points with ViewRenderer?
  • Will this use Zend_View helpers, Smarty helpers, or both? How will they work?
  • Zend_View_Adapter_Smarty seems more consistent with the rest of the framework.