Use of the APP_PATH constant instead of Agl::app()->getPath().