diff --git a/application/helpers/path_helper.php b/application/helpers/path_helper.php index a5e56a5f..a3ac274f 100644 --- a/application/helpers/path_helper.php +++ b/application/helpers/path_helper.php @@ -16,6 +16,10 @@ if ( ! function_exists('storage_path')) /** * Get the path to the storage folder. * + * Example: + * + * $logs_path = storage_path('logs'); // Returns "/path/to/installation/dir/storage/logs" + * * @param string $path * * @return string @@ -31,6 +35,8 @@ if ( ! function_exists('base_path')) /** * Get the path to the base of the current installation. * + * $controllers_path = base_path('application/controllers'); // Returns "/path/to/installation/dir/application/controllers" + * * @param string $path * * @return string