mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Support global routes
This commit is contained in:
parent
7e47c1cb8a
commit
c8a6b8de79
8 changed files with 94 additions and 41 deletions
|
|
@ -2,7 +2,11 @@
|
|||
<module>
|
||||
<grants />
|
||||
<actions>
|
||||
<action name="IS" type="view" meta-noindex="true" />
|
||||
<action name="IS" type="view" meta-noindex="true" global-route="true">
|
||||
<route route="search" />
|
||||
<route route="search/$search_keyword" />
|
||||
<route route="search/$search_target:word/$search_keyword" />
|
||||
</action>
|
||||
|
||||
<action name="dispIntegration_searchAdminContent" type="view" admin_index="true" />
|
||||
<action name="dispIntegration_searchAdminSkinInfo" type="view" />
|
||||
|
|
|
|||
|
|
@ -39,10 +39,6 @@ class integration_search extends ModuleObject
|
|||
}
|
||||
}
|
||||
|
||||
if (!$oModuleModel->getActionForward('IS'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -70,12 +66,6 @@ class integration_search extends ModuleObject
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$oModuleModel->getActionForward('IS'))
|
||||
{
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->insertActionForward('integration_search', 'view', 'IS');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue