elgg2.0 \Elgg\Application class

elgg2.0 does not allow me to call start.php

now how can i connect dartabase 

i show on your document but i could not  understand so please clear it

// Don't do this

! dirname(__DIR__) . "/engine/start.php";

To boot Elgg manually, you can use the class Elgg\Application.

// boot Elgg in mod/myplugin/foo.php

require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';

\Elgg\Application::start();