added index redirect plugin
This commit is contained in:
parent
0c80e23e72
commit
f6572151ec
3 changed files with 14 additions and 2 deletions
12
library/Local/Controller/Plugin/IndexRedirect.php
Normal file
12
library/Local/Controller/Plugin/IndexRedirect.php
Normal 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');
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue