Theme work with focusbusiness and baseadmin
Improvements to NAVBAR, updates to StaticList methods, other minor items Enable product category rendering and other minor improvements Added ADSL-large category price plan
This commit is contained in:
@@ -27,5 +27,31 @@ class Request extends Kohana_Request {
|
||||
|
||||
return parent::directory($directory);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get our Module_Method object for this request
|
||||
*/
|
||||
public function mmo() {
|
||||
static $result = FALSE;
|
||||
|
||||
if (is_null($result) OR $result)
|
||||
return $result;
|
||||
|
||||
$result = NULL;
|
||||
|
||||
$mo = ORM::factory('Module',array('name'=>$this->_controller));
|
||||
|
||||
if ($mo->loaded() AND $mo->status) {
|
||||
$method = strtolower($this->_directory ? sprintf('%s_%s',$this->_directory,$this->_action) : $this->_action);
|
||||
|
||||
// Get the method number
|
||||
$mmo = ORM::factory('Module_Method',array('module_id'=>$mo->id,'name'=>$method));
|
||||
|
||||
if ($mmo->loaded())
|
||||
$result = $mmo;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user