【问题标题】:What is the structure of SocialEngine based on Zend基于 Zend 的 SocialEngine 结构是什么
【发布时间】:2018-01-14 13:57:01
【问题描述】:

我想知道社交引擎的结构是什么。例如,如果我想访问该页面的 URL 为“http://example.com/stores/products”的页面,如何找到其控制器、模型、视图? 当我转到方向应用程序时,我看到了这些:

languages
libraries
modules
plugins
settings
themes
widgets

当我进入模块时,我看到添加到站点的所有模块,包括这些:

Sitestore
Sitestorealbum
Sitestoreform
Sitestoreproduct
Siteverify
Sitevideo

等等……

当我以 Sitestore 为例时,我看到了这些:

Api
controllers
externals
Form
Model
Plugin
settings
View
views
widgets

但即使现在我也不知道在哪里可以找到我需要的与上述 URL 相关的文件。

如果您想知道每个文件中的内容,请告诉我。

欣赏

【问题讨论】:

    标签: php zend-framework module structure socialengine


    【解决方案1】:

    可以从modules/XYZ/settings/manifest.php下的manifest.php获取控制器和动作名称。

    例如,/stores/products

    转到模块/Sitestoreproduct/settings/manifest.php

    这里可以看到Store模块和Products模块的slug_

    对于核心模块,您只会在 /settings/manifest.php 中找到 url 结构,但在第三方模块、SEAO 和其他模块中,他们通过使其动态化来扩展子模块。

    希望能帮助你理解。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-16
      • 1970-01-01
      • 2014-03-27
      • 1970-01-01
      相关资源
      最近更新 更多