diff options
author | M <m@lfurio.us> | 2015-12-05 22:53:34 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-12-05 22:53:34 -0500 |
commit | 5a05468fe2d78641d3adb0ba5b83bf526f4f06de (patch) | |
tree | 66b1729310833ca734a21cf580e8bfef8e505c01 /app/class/framework.class.php | |
parent | 9bab1e5c3d7dae9603c5f2172b2a620465caab0e (diff) | |
download | scrott-5a05468fe2d78641d3adb0ba5b83bf526f4f06de.tar.gz scrott-5a05468fe2d78641d3adb0ba5b83bf526f4f06de.zip |
+ Added framework function for getting current app path
* Changed sysconf view to use new function ($mod->ar()/sysconf -> $mod->ap)
Diffstat (limited to 'app/class/framework.class.php')
-rw-r--r-- | app/class/framework.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/framework.class.php b/app/class/framework.class.php index 11902d0..151ca8e 100644 --- a/app/class/framework.class.php +++ b/app/class/framework.class.php @@ -27,6 +27,14 @@ abstract class Framework } /* + * Get the absolute path to the current page + */ + function ap() + { + return $this->ar() . $_REQUEST['path']; + } + + /* * Redirect to the given URL and die */ function redirectTo($url) |