Initial commit, framework/frontend assets setup
This commit is contained in:
commit
9d9858bb37
32 changed files with 4651 additions and 0 deletions
16
src/View/JsonRender.php
Normal file
16
src/View/JsonRender.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Core\View;
|
||||
|
||||
class JsonRender extends Render
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function render(): void
|
||||
{
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
echo json_encode($this->data);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue