routes not work, only default method, CI4 |
(11-28-2019, 04:59 AM)InsiteFX Wrote: This is what it should look like when i tried open domain.com/public/main it trigger 404 not found, buth method Home::main exist $routes->get('/main', 'Home::index'); i tried multiple options, like remap and not appears take main from url... public function _remap($method) { if ($method === 'some_method') { error_log("method arrive".$method); $this->$method(); } else { $this->default_method(); } } error_log("method arrive".$method); only print " index" not print main when i tried |
Messages In This Thread |
routes not work, only default method, CI4 - by ctogeral - 11-27-2019, 08:51 PM
RE: routes not work, only default method, CI4 - by ciadmin - 11-27-2019, 10:56 PM
RE: routes not work, only default method, CI4 - by InsiteFX - 11-28-2019, 04:59 AM
RE: routes not work, only default method, CI4 - by gilber_fand - 11-28-2019, 10:42 AM
RE: routes not work, only default method, CI4 - by gilber_fand - 11-28-2019, 10:44 AM
RE: routes not work, only default method, CI4 - by gilber_fand - 11-28-2019, 10:46 AM
RE: routes not work, only default method, CI4 - by ctogeral - 12-01-2019, 09:39 AM
|