added index redirect plugin

This commit is contained in:
Logsol 2013-07-08 23:56:50 +02:00
parent 0c80e23e72
commit f6572151ec
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,12 @@
<?php
class Local_Controller_Plugin_IndexRedirect extends Katharsis_Controller_Plugin_Abstract
{
public function preController()
{
if(Katharsis_Request::getControllerName() == 'index' && Katharsis_Request::getActionName() == 'index')
{
Katharsis_Request::setControllerName('page');
Katharsis_Request::setActionName('home');
}
}
}