SOLVED !! Problem was with code igniter class declaration in LOADER.php . Add the following lines if you get this error. Code igniter does not allow pages to be loaded if
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
is not found at the beginning of the file then Code igniter skip that file .