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.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You should create a controller, for example, 'AdminSettingsController.php' in application/modules/Yourmodule/controllers/
In this controller:
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.