app-zap / PHPFramework

A lightweight PHP framework as a composition of different good features and concepts of other frameworks intended for easy use and fast development
Other
4 stars 1 forks source link

Better way to determine the project root #30

Closed smichaelsen closed 9 years ago

smichaelsen commented 9 years ago

At the moment this is the suggested way (in index.php.example) to set the project root:

$_ENV['AppZap\PHPFramework\ProjectRoot'] = dirname(__FILE__);

Maybe we find a smarter solution

smichaelsen commented 9 years ago

If we cannot get rid of it, at least change dirname(__FILE__) to __DIR__, available sind PHP 5.3.