silverstripe-blog/_config.php

21 lines
368 B
PHP
Raw Normal View History

2013-07-21 12:23:35 +02:00
<?php
2013-08-04 18:38:26 +02:00
/**
* Fetches the name of the current module folder name.
*
* @return string
**/
function blog_dir() {
return trim(str_replace(BASE_PATH, "", dirname(__FILE__)), DIRECTORY_SEPARATOR);
}
/**
* Returns the absolute path of the current module path
*
* @return string
**/
function blog_path() {
return BASE_PATH . '/' . blog_dir();
}