How to set dynamic route to use slug in CodeIgniter?

前端 未结 6 1751
心在旅途
心在旅途 2020-12-17 04:00

Let\'s say that I have a controller named

pages

and there is a method

slug_on_the_fly

public functi

6条回答
  •  离开以前
    2020-12-17 04:27

    Use the 404 override reserved route controller/method. If a valid controller/route doesn't exist, this method will be called. Works great as a catch-all.

提交回复
热议问题