I want to use the filter “admin_navigation_main” (or any other filter/hook) to add an entry to the admin navigation. I would like this entry to point to a file located somewhere inside the views folder of the plugin folder (let’s say /MyPlugin/views/admin/index/test.php). I checked the SimplePage plugin but I fail to understand how that works exactly, plus I did not find any other topic in the forum or explanation in the documentation about how to implement this.
What I tried so far (following the indication from this other topic: How to add a view to admin dashboard?)
- I added the hook define_acl and added the Zend_Acl_Resource “MyPlugin_Index” (the same name I set in the “resource” field in the admin_navigation_main filter);
- I created an “IndexController.php” file under “controllers” with a “testAction” calling the views under “admin/index/test.php”
However, I get a 404 error when clicking on the entry on the link in the admin dashboard.
What I am doing wrong?
Thanks in advance!