host = $host; $host->add_handler("test", "example", $this); $host->add_handler("public", "getunread", $this); } function getunread() { print rand(0,100); # yeah right } function example() { print "example method called"; } function csrf_ignore($method) { return true; } function before($method) { return true; } function after() { return true; } } ?>