Example #1
0
 public function __construct()
 {
     parent::__construct(get_class(), 'robotpony-4.1');
     $this->root = realpath(dirname(__FILE__) . '/pages/') . '/';
     $this->inc = realpath(dirname(__FILE__) . '/lib/') . '/';
     Response::add_type_handler('text/plain', function ($dom) {
         print json_encode($dom);
     });
 }