diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/model.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/class/model.php b/app/class/model.php index da5e8bc..b3d5274 100644 --- a/app/class/model.php +++ b/app/class/model.php @@ -4,6 +4,7 @@ abstract class Model const CONFIG_FILE = 'config.json'; const CSS_DIR = 'assets' . DIRECTORY_SEPARATOR .'css' . DIRECTORY_SEPARATOR; + const JS_DIR = 'assets' . DIRECTORY_SEPARATOR .'js' . DIRECTORY_SEPARATOR; const FONT_DIR = 'fonts' . DIRECTORY_SEPARATOR; const MEDIA_DIR = 'media' . DIRECTORY_SEPARATOR; const FAVICON_DIR = 'media' . DIRECTORY_SEPARATOR . 'favicon' . DIRECTORY_SEPARATOR; @@ -49,6 +50,11 @@ abstract class Model return self::dirtopath(Model::CSS_DIR); } + public static function jspath() + { + return self::dirtopath(Model::JS_DIR); + } + public static function mediapath() { return self::dirtopath(Model::MEDIA_DIR); |