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