开发者

routing Codeigniter with HMVC

I'm using Codeigniter in combination with Datamapper and HMVC. see folder structure:

-application
   -controllers
      -admin
         -admin.php       
   -module开发者_如何学Gos
      -users
        -models
        -controllers
        -views

Now i want to call my admin controller but the functions within this controller are not found only the index. my module controllers are routing correctly. suggestions?


If admin/ was a module, you would be able to access this with /admin/method but since it's in the regular controllers directory, you would need to go to admin/admin/method. You can specify a default controller for a sub-directory inside the controllers directory, but it will only call the index method if no parameters are passed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜