Update index.php

Add APPLICATION_PATH constant