diff options
author | nashe <thomas@chauchefoin.fr> | 2017-10-17 09:13:29 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-10-17 09:13:29 +0200 |
commit | aa9abd236239e363da2934918fe1fb32242a1859 (patch) | |
tree | 6a67d8d21b8a996de1e19653281c3548ec39d8ab | |
parent | 1f4c2a34ec5dea8be7691c9ae23250058e7e38b3 (diff) | |
download | planet-aa9abd236239e363da2934918fe1fb32242a1859.tar planet-aa9abd236239e363da2934918fe1fb32242a1859.tar.gz planet-aa9abd236239e363da2934918fe1fb32242a1859.tar.bz2 planet-aa9abd236239e363da2934918fe1fb32242a1859.tar.xz planet-aa9abd236239e363da2934918fe1fb32242a1859.zip |
Add view_path and admin_path helpers
-rw-r--r-- | app/helpers.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php index 6ec55c1..56d8eba 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -12,6 +12,28 @@ function custom_path($file = '') } /** + * Path to the _views_ directory. + * + * @param string $file Append this filename to the returned path. + * @return string + */ +function views_path($file = '') +{ + return custom_path('views/install.tpl.php'); +} + +/** + * Path to the _admin_ directory. + * + * @param string $file Append this filename to the returned path. + * @return string + */ +function admin_path($file = '') +{ + return __DIR__.'/../admin' . (!empty($file) ? '/'.$file : ''); +} + +/** * Is moonmoon installed? * * @return bool |