Skip to main content

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

No much reaction, I created a bug here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=262264
and attached a patch to it.

On Wed, Jan 21, 2009 at 7:45 AM, Antoine Toulme <antoine@xxxxxxxxxxxxxxx> wrote:
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