Mike and I are having a discussion on IRC right now with the goal to
overhaul the define()s of constants like AG_APP_DIR and the like a bit. A
thing we settled upon was that the definition of AG_APP_DIR itself should be
moved into agavi.php, using
define('AG_APP_DIR', dirname(__FILE__));

Likewise, inside config.php, the AG_WEBAPP_DIR definition can be changed to
define('AG_WEBAPP_DIR', dirname(__FILE__));

What's left then is index.php.
I think the require_once statement that includes config.php should be
changed to be relative by default:
require_once('../webapp/config.php');

The only thing that's left then is the inclusion of agavi itself inside
index.php. We could ask for that path when doing "agavi project", and
default it to what is specified in the helper script. I'd enter
../libs/agavi/agavi.php
then, because I always bundle my libs with projects (I'm setting a different
include path in config.php).

- David


_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to