lib/router.php:
<?php
class onrRouter extends ezcMvcRouter
{
public function createRoutes()
{
return array(
// Recipes
new ezcMvcRailsRoute( '/recipes', 'onrRecipeController', 'list' ),
new ezcMvcRailsRoute( '/recipe/list', 'onrRecipeController', 'list' ),
new ezcMvcRailsRoute( '/recipe/add', 'onrRecipeController', 'add' ),
new ezcMvcRailsRoute( '/recipe/submit',
'onrRecipeController', 'submit' ),
new ezcMvcRailsRoute( '/recipe/:id', 'onrRecipeController', 'view' ),
);
}
}
lib/autoload/autoload.php:
<?php
return array(
'onrAuthController' => 'controllers/auth.php',
'onrRecipeController' => 'controllers/recipe.php',
);
?>