Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2.  
  3. class Main {
  4. public function __construct(){}
  5. static function newSlimApp() {
  6. return _hx_anonymous(array("app" => new \Slim\App()));
  7. }
  8. static function main() {
  9. $slim = _hx_anonymous(array("app" => new \Slim\App()));
  10. {
  11. $slim->app->get("/pippa", function ($req, $res)
  12. {
  13. {
  14. print_r($req);
  15. print_r($res);
  16. $this["view"]->display("profile.html");
  17. }
  18. });
  19. }
  20. }
  21. function __toString() { return 'Main'; }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement