threethousand

Results 5 comments of threethousand

Flight::after('start', function() { Flight::serviceSession()->reload(); } Flight::route('POST /account', array('actionAccount','main')); class actionAccount { public static function main() { Flight::json(array('id' => 123)); } } serviceSession()->reload function reloads a cookie. but even if i...

yes, i want to send a response, not retrieve. im gonna have to keep digging but its so weird. firefox says: "Possible causes: the network is offline, Origin is not...

its something to do with **Flight::after('start',** because if i move the "Flight::serviceSession()->reload();" call into the actionAccount','main') function, and the contents of said function only is: public static function main() {...

wrapping the response in exit() makes it work. **exit(Flight::json(array('id' => 123)));** any issue with doing that?