Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created August 10, 2011 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/1137411 to your computer and use it in GitHub Desktop.
Save grahamc/1137411 to your computer and use it in GitHub Desktop.
<?php
class Controller_Foo extends Controller
{
public function index()
{
return 'You got me!';
}
public function save()
{
return 'You posted me!';
}
}
homepage:
url: /foo
param: { module: Foo, action: index }
requirements: { method: GET }
edit_route_name:
url: /foo
param: { module: Foo, action: save }
requirements: { method: POST }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment