Appwards Posted June 21, 2015 Share Posted June 21, 2015 Hi all, I've been trying to find the proper way to allow the configuration page of my module to be linked from the left hand menu. If I do it manually through the Administration -> Menus screen, I need to specify Name, class en module and then the menu item shows up, but then I also need to add a method "viewAccess" to my module. And if I add that method I need to add more methods. So I just hijacked the viewAccess method, making it redirect the browser to my menu's page. There must be a better way to do this. And how to add a custom icon with the menu item entry? Thanks in advance! Link to comment Share on other sites More sharing options...
Appwards Posted October 20, 2015 Author Share Posted October 20, 2015 Well, it turns out that you have to add a admincontroller for that to work. So I've solved it like this: Created: //modules/mymodule/controllers/admin/AdminMymoduleController.php Added: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now