ok i used Zend_Controller_Plugin to do this... any critiques?

<?php
class IMS_Plugin_Search extends Zend_Controller_Plugin_Abstract {
    function preDispatch(Zend_Controller_Request_Abstract $request) {
        if (!$request->isPost()) {
            $module = $request->getModuleName();
            $controller = $request->getControllerName();
            
            $view = Zend_Layout::getMvcInstance()->getView();
            $view->module = $module;
        }
    }
}

-- 
View this message in context: 
http://www.nabble.com/Determine-moduleName-from-view-tp23457921p23460902.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to