[TYPO3-50-general] Common namings for variables with path-content
Bastian Waidelich
bastian at typo3.org
Thu Jan 15 12:35:54 CET 2009
Robert Lemke wrote:
Hi Robert,
> - path
> - directoryName
> - filename
> - pathAndFilename
given a file "/foo/bar/file.php" and the current directory "/foo", that
would be:
$path: "/foo/bar/" or "bar"
$relativePath: "bar"
$absolutePath: "/foo/bar"
$directoryName: "bar"
$filename: "file.php"
$pathAndFilename: "/foo/bar/file.php" or "bar/file.php"
$absolutePathAndFilename: "/foo/bar/file.php"
$relativePathAndFilename: "bar/file.php"
correct? me like it!
Bastian
More information about the TYPO3-project-5_0-general
mailing list