0

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

-application
   -controllers
      -admin
         -admin.php       
   -modules
      -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?

4

1 回答 1

0

如果admin/是一个模块,您将能够访问它,/admin/method但由于它位于常规控制器目录中,您需要转到admin/admin/method. 您可以为控制器目录中的子目录指定默认控制器,但如果没有传递参数,它将仅调用 index 方法。

于 2011-10-05T13:29:36.623 回答