search

Home  >  Q&A  >  body text

thinkphp routing problem

'url_route_on' => true,

// Route uses complete match

'route_complete_match' => false,

// Routing configuration file (supported Configure multiple)

'route_config_file' => ['route'],

// Whether to force the use of routing

'url_route_must' => false,

'route_complete_match' => false, change to true

'url_route_must' => false, change to true

will report an error

孙帅帅孙帅帅2408 days ago1053

reply all(1)I'll reply

  • 亚连

    亚连2018-06-11 09:34:48

    If you enable forced routing, you must set the route, otherwise an undefined route error will be reported. If you are not very familiar with routing, it is recommended not to enable forced routing.

    reply
    1
  • Cancelreply