zend predispatch layoutloader
===

hi i need a help on a zend layout loader following are my code which does not work well!!

    public function preDispatch(){
	
		$bootstrap = $this->getActionController()->getInvokeArg('bootstrap');
		$config = $bootstrap->getOptions();
		Zend_Registry::set('config', $config);
		$module = $this->getRequest()->getModuleName();
		$controller = $this->getRequest()->getControllerName();
		$action = $this->getRequest()->getActionName();
    }

thanks