mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Use action_forward to register standalone routes from all modules
This commit is contained in:
parent
5dcb0d332b
commit
f92fc9c980
7 changed files with 162 additions and 59 deletions
|
|
@ -24,7 +24,8 @@ class installAdminController extends install
|
|||
|
||||
$oInstallController = getController('install');
|
||||
$oInstallController->installModule($module_name, './modules/'.$module_name);
|
||||
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->registerActionForwardRoutes($module_name);
|
||||
$this->setMessage('success_installed');
|
||||
}
|
||||
|
||||
|
|
@ -41,13 +42,23 @@ class installAdminController extends install
|
|||
if(!$oModule) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
Rhymix\Framework\Session::close();
|
||||
|
||||
$output = $oModule->moduleUpdate();
|
||||
Rhymix\Framework\Session::start();
|
||||
if($output instanceof BaseObject && !$output->toBool())
|
||||
{
|
||||
Rhymix\Framework\Session::start();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->registerActionForwardRoutes($module_name);
|
||||
if($output instanceof BaseObject && !$output->toBool())
|
||||
{
|
||||
Rhymix\Framework\Session::start();
|
||||
return $output;
|
||||
}
|
||||
|
||||
Rhymix\Framework\Session::start();
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue