[英]FuelPHP with dash in controller name
我在路由忘記密碼的頁面時遇到問題(重定向到404錯誤)。
網址是:
www.mysite.com/forgot-password
控制器名稱為:
class Controller_Forgot_Password extends Controller
控制器的文件名為forgot_password.php
路線:
'forgot_password' => 'forgot_password/index',
問題是找不到控制器,並將我發送到404頁...如何解決?
謝謝
將您的路由配置從forgot_password
更改為forgot-password
,如下所示:
'forgot-password' => 'forgot_password/index'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.