incubator-zeta-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Waterson <ke...@phpro.org>
Subject Re: [zeta-dev] MvcTools Router
Date Sun, 05 Sep 2010 07:42:13 GMT

On Sat, 2010-09-04 at 12:43 +0200, James Pic wrote:
> Care to Show us where you're blocked ?

I am basing the router from the example on the website.

<?php

class zpRouter extends ezcMvcRouter
{

        public function createRoutes()
        {
                // ezcMvcRailsRoute( $url, $controller_name,
$method_name )
                return array(
                new ezcMvcRailsRoute( '/gday', 'zpController', 'gday' ),
                new ezcMvcRailsRoute( '/downloadTest',
'zpTestController', 'download' ),
                new ezcMvcRailsRoute( '/:name', 'zpController',
'greetPersonally' ),
                new ezcMvcRailsRoute( '/', 'zpController', 'greet' ),
        );
        }
}
?>

-- 
Kind regards
Kevin

--------------------------------------------
Chant Hare Krishna and be happy!!
--------------------------------------------


Mime
View raw message