Hello, I'm wondering if it's possible to output just a file name like "contact.php" or "home.php" via couch? I would find it useful to build links to files which have the same name but are located in different folders.
I found the following php snippet, but fore some reason it was not working in the link
I found the following php snippet, but fore some reason it was not working in the link
- Code: Select all
<?php
$currentFile = $_SERVER["PHP_SELF"];
$parts = Explode('/', $currentFile);
echo $parts[count($parts) - 1];
?>