You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ss-panel-v3-mod_Uim/app/Controllers/BaseController.php

43 lines
613 B
PHTML

9 years ago
<?php
namespace App\Controllers;
use App\Services\Auth;
use App\Services\View;
/**
* BaseController
*/
class BaseController
{
public $view;
public $smarty;
public function construct__()
{
}
public function smarty()
{
$this->smarty = View::getSmarty();
return $this->smarty;
}
public function view()
{
return $this->smarty();
}
/**
* @param $response
* @param $res
* @return mixed
*/
public function echoJson($response, $res)
{
return $response->getBody()->write(json_encode($res));
}
}