Ronald
|
Posted: 01/03/2006, 11:35 AM |
|
I would really appreciate more events.
My "most wanted": AfterOperations!!
In the block after Execute Components, there's no way of stopping a redirect from happening. There are many occasions in which I don't want a redirect to occur.
Besides that, the ability to add custom code in between operation() and show() is a wonderful thing to have.
Therefore, I would like the code to become something like this:
//Execute Components @1-C7EA9D8A
$menu->Operation();
$menuitem->Operation();
//End Execute Components
$CCSEventResult = CCGetEvent($CCSEvents, "AfterOperations", $MainPage);
//Go to destination page @1-85F29D52
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBdb->close();
header("Location: " . $Redirect);
unset($menu);
unset($menuitem);
unset($Tpl);
exit;
}
//End Go to destination page
//Show Page @1-D4405322
$menu->Show();
$menuitem->Show();
Is there some way to already add this to the CCS program, so that it is available like any other events?
|