问题描述
我们如何为社交引擎4中的自定义窗口小部件创建管理面板页面?我尚未在互联网上找到任何与此相关的信息.
How can we create an administration panel page for a custom widget in social engine 4?I have not found any information regarding this over the internet.
推荐答案
您应在application/modules/Yourmodule/controllers/
You should create a controller, for example, 'AdminSettingsController.php' in application/modules/Yourmodule/controllers/
在此控制器中:
class User_AdminManageController extends Core_Controller_Action_Admin
然后在内部创建public function indexAction()
.它将包含与自定义窗口小部件相关的所有代码.
Then create public function indexAction()
inside. It will contain all your code related to your custom widget.
之后,您应该在application/modules/Yourmodule/views/scripts/admin-settings/中创建一个名为"index.tpl"的视图.
After that you should create a view in application/modules/Yourmodule/views/scripts/admin-settings/ called 'index.tpl'.
现在您可以通过链接yoursite.com/admin/yourmodule/settings
Now you can access your administration panel page by the link yoursite.com/admin/yourmodule/settings
希望这会有所帮助.
这篇关于如何在Socialengine 4中为自定义窗口小部件添加管理页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!