Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use comb as c;
- c\add_handler('get', function() {
- $title = c\ifset('title', 'DEFAULT TITLE!');
- $age = (int) c\ifset('age', 0);
- });
- c\add_handler('post', function() {
- // handle the POST request
- });
Add Comment
Please, Sign In to add comment