<?php

error_reporting(E_ALL);

// Application type
define('APPLICATION_TYPE', 'Frontend');
define('STATIC', true);
// ROOT Path
define('ROOT_DIR', dirname(__DIR__));

$loader = require_once ROOT_DIR . '/loader.php';

use Arrim\Balatili\Bootstrap;

$bs = new Bootstrap($loader);

try {
    $application = new \Arrim\Phalcon\Mvc\Application($bs->getDi());
    echo $application->handle()->getContent();
} catch (\Exception $e) {
    echo $e->getMessage();
}
