无法在Codeigniter中创建新路由

时间:2017-01-05 09:01:09

标签: php codeigniter

Codeigniter 在我Routes.php创建新路由后,当我在浏览器上查看它时,它会重定向我的应用程序主页

route.php中的代码定义如下:

 $route['ViewShan']='Member/Jammat/viewJammat';

我正在检查的URL是 http://localhost/MembersPro/ViewShan

1 个答案:

答案 0 :(得分:0)

更改路线

protected void onHandleIntent(Intent intent)
{
    final GeofencingEvent event = GeofencingEvent.fromIntent(intent);
    if (event.hasError())
    {
        Log.e(TAG, getErrorMessage(event.getErrorCode()));
        return;
    }

    switch (event.getGeofenceTransition())
    {
        case Geofence.GEOFENCE_TRANSITION_EXIT:
            // Not triggered 
            break;
        case Geofence.GEOFENCE_TRANSITION_ENTER:
        case Geofence.GEOFENCE_TRANSITION_DWELL:
            // Not triggered
            break;
        default:
            // Triggered on exit and enter
    }
}

$route['ViewShan']='Member/Jammat/viewJammat';