From 0a6b596dec25678df16e6759f28026827ca8d784 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 23 Oct 2021 13:38:54 +0200 Subject: [PATCH] Added examples at the comments --- application/helpers/path_helper.php | 6 ++++++ 1 file changed, 6 insertions(+) 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