Home > php教程 > php手册 > body text

Zend Framework推出新PHP模块函数

WBOY
Release: 2016-06-06 19:52:34
Original
967 people have browsed it

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 Zend Framework 新的版本(0.7)当中推出了新的PHP模块函数。大家可以在Rob Allen 的Blog中的一篇新日志了解到具体的用法和代码示例。新的模块函数有两个,分别是Zend_Controller_ModuleRouter和Zend

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

    Zend Framework 新的版本(0.7)当中推出了新的PHP模块函数。大家可以在Rob Allen 的Blog中的一篇新日志了解到具体的用法和代码示例。新的模块函数有两个,分别是Zend_Controller_ModuleRouter和Zend_Controller_ModuleRewriteRouter。通过这个新的模块函数,你可以把控制器,模块和视图分别归置到它们自己的模块当中。Rob Allen在他的blog当中解释了操作过程,并且用具体的代码进行演示。

    这个函数通过第一个URL参数映射到该模块,并在该路径下寻找模块控制器。这个过程Rob Allen在他的演示中也有讲述。

    他指出,在现在的文件夹分布当中,控制器总是需要模块和视图。但是这些模块和视图都分布在应用的路径下,而且散布在模块路径中,这种情况会让你觉得很凌乱。Rob Allen在他的Blog当中,演示了如何创建默认调用的路径去包含三个文件夹以便有效地组织这些应用。

Zend Framework推出新PHP模块函数

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!