jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.
https://github.com/jmathai/epiphany
Other
686 stars 139 forks source link

Added default base path to be the realpath of the directory of Epi.php file #82

Closed ierceg closed 10 years ago

ierceg commented 10 years ago

I added a sensible default for 'base' when 'base' is undefined.

georules commented 10 years ago

:+1: I like this.

jmathai commented 10 years ago

Thanks for the commit. It beats what I always do...

$basePath = dirname(dirname(__FILE__));
Epi::setPath('base', $epiPath);
ierceg commented 10 years ago

You got it. Thank you for an excellent framework.