Created
August 10, 2011 16:58
-
-
Save grahamc/1137411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Controller_Foo extends Controller | |
{ | |
public function index() | |
{ | |
return 'You got me!'; | |
} | |
public function save() | |
{ | |
return 'You posted me!'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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