Created
January 17, 2016 17:48
-
-
Save dragoonis/64cc37d8da3dc6f69f6e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
use Application\Controller\Shared as SharedController; | |
use Psr\Http\Message\RequestInterface; | |
class Index extends SharedController | |
{ | |
public function exampleAction(RequestInterface $request) | |
{ | |
$message = $request->get('message'); | |
echo $message; | |
exit; | |
return $this->render('Application:index:example.html.php'); | |
} | |
} | |
?> |
This file contains hidden or 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
Example: | |
pattern: /example | |
defaults: { _controller: "Application:Index:example"} | |
requirements: | |
_method: POST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment