How to add an admin page for a custom widget in Socialengine 4

邮差的信 提交于 2019-12-12 03:08:59

问题


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.


回答1:


You should create a controller, for example, 'AdminSettingsController.php' in application/modules/Yourmodule/controllers/

In this controller:

class User_AdminManageController extends Core_Controller_Action_Admin

Then create public function indexAction() inside. It will contain all your code related to your custom widget.

After that you should create a view in application/modules/Yourmodule/views/scripts/admin-settings/ called 'index.tpl'.

Now you can access your administration panel page by the link yoursite.com/admin/yourmodule/settings

Hope this helps.



来源:https://stackoverflow.com/questions/14750884/how-to-add-an-admin-page-for-a-custom-widget-in-socialengine-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!