Skip to content

dealnews/PageMill.Action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PageMill Action

Basic Example

use PageMill\Action\Action;

$action = new Action(
    "GET",
    "/",
    []
);

$action->set_domain(function($a, $b, array $c) {
    return ["Hi!"];
});

$action->set_responder(function(array $data) {
    echo $data[0];
});

$action->__invoke();