-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Endel Dreyer edited this page Jan 9, 2015
·
5 revisions
Your application routes should be defined in app/config/routes.php
. The Router
class supports get
, post
, put
, delete
, and any
methods.
Examples:
// Any HTTP verb allowed.
Router::any('/', 'HomeController:index');
// Only GET allowed.
Router::get('/', 'HomeController:show');
// Only POST allowed.
Router::post('/', 'HomeController:create');
// Only PUT allowed.
Router::put('/', 'HomeController:update');
// Only DELETE allowed.
Router::delete('/', 'HomeController:destroy');
hook-framework support both Handlebars and Mustache as template engine. (thanks to zordius/lightncandy)