issue 70 menu auto setting completed

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8615 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-07-21 02:49:07 +00:00
parent f3df85dcca
commit bfa45bfde4
12 changed files with 400 additions and 81 deletions

View file

@ -6,11 +6,21 @@
**/
class documentAdminView extends document {
/**
* @brief Initialization
**/
function init() {
// check current location in admin menu
$oModuleModel = &getModel('module');
$info = $oModuleModel->getModuleActionXml('document');
foreach($info->menu AS $key => $menu)
{
if(in_array($this->act, $menu->acts))
{
Context::set('currentMenu', $key);
break;
}
}
}
/**