How do you use multiple controllers in CodeIgniter?

后端 未结 3 1569
别跟我提以往
别跟我提以往 2021-01-13 19:44

I\'m new to CodeIgniter and I\'ve just gone through some of their user guide to help me understand how to do multiple controllers.

I have figured out how to load mul

3条回答
  •  一生所求
    2021-01-13 20:10

    You are routing everything to your Site controller with the routing rule:

    $route['(:any)'] = 'site/index/$1';

    With such a catch-all routing rule you will never reach other controllers as for example your Mycontroller.

提交回复
热议问题