load(); $ppk = $instansi[0]["REFERENSI"]["PPK"]; $imagePath = realpath(".")."/reports/images/"; $uri = explode("/", $_SERVER['REQUEST_URI']); $routes = [ "favicon" => $name = $ppk["ID"], "kemkes" => "kemkes", "germas" => "germas", "berakhlak" => "berakhlak", "simpel-icon" => "simpel-icon", "simgos-icon" => "simgos-icon" ]; if(count($uri) > 0) { $name = isset($uri[count($uri) - 1]) ? $uri[count($uri) - 1] : null; if(isset($routes[$name])) { header("Content-type: image/png"); readfile($imagePath.$routes[$name].".png"); exit; } } ?> doctype() ?> headTitle('API '.$ppk["NAMA"]); echo $this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1.0'); echo $this->headLink(['rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $this->basePath('/favicon')]) ->prependStylesheet($this->basePath('/api-tools/css/main.min.css')) ->prependStylesheet($this->basePath('/api-tools/css/bootstrap.min.css')); echo $this->headScript() ->prependFile($this->basePath('/api-tools/js/bootstrap.min.js')) ->prependFile($this->basePath('/api-tools/js/jquery.min.js')); ?>
content ?>
inlineScript() ?>