jacobemerick/web

View on GitHub
router/SiteRouter.class.inc.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?

Loader::load('router', 'Router');

class SiteRouter extends Router
{

    protected function get_redirect_array()
    {
        return array(
            (object) array(
                'pattern' => '@/index.(html|htm|php)$@',
                'replace' => '/'));
    }

    protected function get_direct_array()
    {
        return array(
            (object) array(
                'match' => '/',
                'controller' => 'HomeController'),
            (object) array(
                'match' => '/terms/',
                'controller' => 'TermsController'),
            (object) array(
                'match' => '/change-log/',
                'controller' => 'ChangelogController'),
        );
    }

}