_controller,'_') ? explode('_',$this->_controller,2) : array($this->_controller,''); $mo = ORM::factory('Module',array('name'=>$c)); if ($mo->loaded() AND $mo->active) { $method = strtolower($this->_directory ? sprintf('%s:%s',$this->_directory.($x ? '_'.$x : ''),$this->_action) : $this->_action); // Get the method number $mmo = $mo->module_method ->where('name','=',$method) ->find(); if ($mmo->loaded()) $result = $mmo; } return $result; } } ?>