如何设计Joomla风格的插件?

如何设计Joomla风格的插件?,joomla,joomla1.5,joomla1.7,Joomla,Joomla1.5,Joomla1.7,首先,我想描述一下我的项目架构,以便它可以帮助回答我的问题 My project uses jqGrid. Controllers only define the Grid. Then Models retrieve the Data for the Grid. Models are used to Add/Edit/Delete Records. Views are used to show the page. 考虑一下,我的项目有10种不同的客户。我的项目是一个托管解决方案,它从一个来源为

首先,我想描述一下我的项目架构,以便它可以帮助回答我的问题

My project uses jqGrid.
Controllers only define the Grid.
Then Models retrieve the Data for the Grid.
Models are used to Add/Edit/Delete Records.
Views are used to show the page.
考虑一下,我的项目有10种不同的客户。我的项目是一个托管解决方案,它从一个来源为我所有的10个客户提供服务。其中,8个需求与我创建的完全相同。只有两个与普通的不同

比如说,想象一下,我想显示产品列表。由于我的项目是一个托管解决方案,我无法更改菜单,通过该菜单我可以为上述2个客户更改控制器


为了解决这个问题,我想实现像Joomla这样的插件系统。

Joomla插件由框架根据请求构建页面时发生的各种事件触发。关于API执行顺序和触发的各种事件的文档非常好,应该可以让您了解需要做什么-

事件--

API执行令-