dongyan1974 2013-07-23 11:12
浏览 18
已采纳

使用带有codeigniter的模块进行路由

I'm working with HMVC with wiredesignz plugin and have the following url mysite.com/login and it views my login form. I have the form to post to the submit method in the login controller inside of the user module. I'm trying to figure out what the route would be for this to work because inside of the submit method I have it echoing a string for testing purposes. The first route works beautifully but the second route presents a 404 Page not found. Any thoughts on how to correct this.

$route['login'] = 'user/login';
$route['login/submit'] = 'user/login/submit';
  • 写回答

2条回答 默认 最新

  • duanluangua8850 2013-07-23 11:56
    关注

    I was able to fix my issue by noticing that my submit function was named as a private function and not listed as public.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部