Update index.php

Converted ->setBasePath() to automatic thanks to User http://stackoverflow.com/users/548225/anubhava