Smarty的
Smarty是一个用PHP编写的Web模板系统. Smarty主要被推广为分离关注点的工具,这是某种应用的常见设计策略.[1] [2]
Smarty generates web content by the
placement of special Smarty tags
within a document. These tags are
processed and substituted with other
code.Tags are directives for Smarty that
are enclosed by template delimiters.
These directives can be variables,
denoted by a dollar sign ($),
functions,logical or loop statements.
Smarty allows PHP programmers to
define custom functions that can be
accessed using Smarty tags.Smarty is intended to simplify
compartmentalization,allowing the
presentation of a web page to change
separately from the back-end. Ideally,
this eases the costs and efforts
associated with software maintenance.
Under successful application of this
development strategy,designers are
shielded from the back-end coding,and
PHP programmers are shielded from the
presentation coding.
Zend公司
ZF是一个随意使用的框架.尽管ZF确实为MVC,表数据网关和行数据网关设计模式提供了组件,但Zend Framework用户不必遵循单一的开发范例或模式. Zend Framework为Web应用程序开发中的许多其他常见需求提供了单独的组件.[1]
Zend Framework还致力于在PHP社区中推广Web开发最佳实践; ZF中的约定并不像许多其他框架那样常用,而是通过设置合理的默认值来提出建议,这些默认值可以针对每个ZF应用程序的特定要求进行覆盖.[4]