Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[babel-dev] Getting rid of BABEL_BASE_DIR

Team,

Babel makes extensive use of BABEL_BASE_DIR. I see a few hurdles with that. In particular, it is defined in some places, and not in others.

This is the way you can have the current directory for a PHP file:

dirname(__FILE__);

so for example, if you want to require the user PHP file, while you are in /html/login.php:

require_once dirname(__FILE__) . "../classes/system/user.class.php";

What do you think ? Sounds good ?

Thanks,

Antoine

Back to the top