I have a controller which is configured to handle requests prior to the core controller using a config.xml similar to this;
<frontend>
<routers>
<catalogsearch>
<args>
<modules>
<myextension before="Mage_CatalogSearch">My_Extension</myextension>
</modules>
</args>
</catalogsearch>
</routers>
</frontend>
The action it overrides should occasionally pass-through to the next (CatalogSearch) controller, and other times should execute it's own action and return--without running the CatalogSearch action.
class My_Controller extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
if ($this->shouldRun())
{
$this->loadLayout();
$this->renderLayout();
// Stop further processing
}
// Continue to next controller
}
}
In my controller action how can I prevent the next controller from being called?