Version 0.9.5 beta - added additional json/application headers for a possible REST module
This commit is contained in:
@@ -83,6 +83,15 @@ class View implements IView
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* @desc setting response to application json headers
|
||||
*/
|
||||
public static function forwardToJsonHeader()
|
||||
{
|
||||
header(self::NIBIRU_CONTENT_TYPE_JSON, true);
|
||||
header(self::NIBIRU_CONTENT_TYPE_CONNECTION, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $page
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user