Created
May 20, 2018 04:24
-
-
Save suresh-kumara-gist/db19df8b127b062e2e1c5a24387d2115 to your computer and use it in GitHub Desktop.
php 3 directory level down
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once customization_module_file_path(); | |
/** | |
* @return string test.module file path | |
*/ | |
function customization_module_file_path() { | |
// The directory of the file | |
$customizationsmodulepath = __DIR__; | |
/** | |
* Given a string containing the path of a file or directory, this function | |
* will return the parent directory's path that is levels up from the | |
* current directory. | |
*/ | |
$customizationsmodulepath = dirname($customizationsmodulepath, 3); | |
$customizationsmodulefilepath = $customizationsmodulepath . "/test.module"; | |
return $customizationsmodulefilepath; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment