Is it possible to choose an admin from the plugin?
For example, I have a table of departments and categories of databases. I'm bringing them and want to do some work (choosing controller and action).
Reason - I do not want to take action for each category separately controller and for each category.
You can do the following:
class Content_Plugin Zend_Controller_Plugin_Abrstract {public Function Path Shutdown Zend_Controller_Request_Abstract $ request) {// Faching Department and Categories // ... $ request- & gt; SetControllerName ('my'); // Mac Controller $ request- & gt; The set action map will map ('special'); // MAC Controller :: Special Action (); }}
Comments
Post a Comment