Browse Source

Add theme_path() for easy theming

pull/659/head
danpros 2 years ago
parent
commit
c02241509b
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      system/includes/dispatch.php

+ 10
- 0
system/includes/dispatch.php View File

@ -34,6 +34,16 @@ function site_path()
return $_path;
}
function theme_path()
{
if (config('views.root') == null)
error(500, '[views.root] is not set');
return site_url() . rtrim(config('views.root'), '/') . '/';
}
function error($code, $message)
{
@header("HTTP/1.0 {$code} {$message}", true, $code);


Loading…
Cancel
Save