Hi Tomas,
Yep. Zend_Layout is the two-step view implementation. For the Composite View, it's not a single implementation but a collection of related implementation. For example, Partials let you render sub-views into any parent view. View Helpers, let you render any set of data into a specific format (or use a specific filter). Placeholders let you add changes (like requiring a new stylesheet, or JS include) into any sub-view in such a way it can be read by the parent view (or the Layout) to be included dynamically.
You can use these within a Layout itself, not just a parent local view, since a Layout is the ultimate parent view in the Composite View implementation.
Paddy
Pádraic Brady
http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative
From: tomascejka <dis.cejkatomas@gmail.com>
To: fw-mvc@lists.zend.com
Sent: Sun, October 11, 2009 11:17:13 AM
Subject: [fw-mvc] Design View patterns - where there is a start my implementation
Hi,
I do not understand how to use design patterns in ZF. I suppose Zend_Layout
is Two Step View pattern, so I can use it and I do not have to implement it.
But I do not know where is my implementation of View composite pattern?
Controller has actions, and there is a relation one action is one view for
example, View/scripts/index/index.phtml.
1. What is index.phtml? Composite View?
2. What is SubView? Various implementations of ZendViewHelper objects which
I compose/include
in index.phtml?
3. What is layout.phtml? ViewManager?
Thanks
-----
Enviroment
==========
OS:
SUSE Linux Enterprice 10 (i586) - version 2.6.16.60-0.27-smp
Windows XP
Tomcat v6.0.16
Java(TM) SE Runtime Enviroment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
Maven v2.0.9
Apache 2.2.11
MySQL 5.1.30
PHP 5.2.10
qooxdoo-0.8.2
Python 2.5
Zend framework 1.9.2
Dojo 1.3.2
Hudson:
=======
version 1.304
plugins: Maven 1.304, SSH Slaves
running: deployed in Tomcat
front-end developer web-based application
A.S.E.I. [http://www.asei.cz]
--
View this message in context: http://www.nabble.com/Design-View-patterns---where-there-is-a-start-my-implementation-tp25842154p25842154.html
Sent from the Zend MVC mailing list archive at Nabble.com.
Yep. Zend_Layout is the two-step view implementation. For the Composite View, it's not a single implementation but a collection of related implementation. For example, Partials let you render sub-views into any parent view. View Helpers, let you render any set of data into a specific format (or use a specific filter). Placeholders let you add changes (like requiring a new stylesheet, or JS include) into any sub-view in such a way it can be read by the parent view (or the Layout) to be included dynamically.
You can use these within a Layout itself, not just a parent local view, since a Layout is the ultimate parent view in the Composite View implementation.
Paddy
http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative
From: tomascejka <dis.cejkatomas@gmail.com>
To: fw-mvc@lists.zend.com
Sent: Sun, October 11, 2009 11:17:13 AM
Subject: [fw-mvc] Design View patterns - where there is a start my implementation
Hi,
I do not understand how to use design patterns in ZF. I suppose Zend_Layout
is Two Step View pattern, so I can use it and I do not have to implement it.
But I do not know where is my implementation of View composite pattern?
Controller has actions, and there is a relation one action is one view for
example, View/scripts/index/index.phtml.
1. What is index.phtml? Composite View?
2. What is SubView? Various implementations of ZendViewHelper objects which
I compose/include
in index.phtml?
3. What is layout.phtml? ViewManager?
Thanks
-----
Enviroment
==========
OS:
SUSE Linux Enterprice 10 (i586) - version 2.6.16.60-0.27-smp
Windows XP
Tomcat v6.0.16
Java(TM) SE Runtime Enviroment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
Maven v2.0.9
Apache 2.2.11
MySQL 5.1.30
PHP 5.2.10
qooxdoo-0.8.2
Python 2.5
Zend framework 1.9.2
Dojo 1.3.2
Hudson:
=======
version 1.304
plugins: Maven 1.304, SSH Slaves
running: deployed in Tomcat
front-end developer web-based application
A.S.E.I. [http://www.asei.cz]
--
View this message in context: http://www.nabble.com/Design-View-patterns---where-there-is-a-start-my-implementation-tp25842154p25842154.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论