Welcome Guest, Not a member yet? Register   Sign In
Form with POST return null
#5

(11-26-2018, 08:11 PM)NiteRaven Wrote: https://codeigniter4.github.io/CodeIgnit...aceholders

! Note:
{locale} cannot be used as a placeholder or other part of the route, as it is reserved for use in localization.

I have used it in every route of my web  and it works, I also tried to write the ulr without {locale}, and still dosen't work

Quote:In Routes
The second method uses a custom placeholder to detect the desired locale and set it on the Request. The placeholder 
Code:
{locale}

 can be placed as a segment in your route. If present, the contents of the matching segment will be your locale:


PHP Code:
$routes->get('{locale}/books','App\Books::index'); 
Reply


Messages In This Thread
Form with POST return null - by Perhood - 11-23-2018, 03:46 AM
RE: Form with POST return null - by InsiteFX - 11-23-2018, 09:12 AM
RE: Form with POST return null - by Perhood - 11-26-2018, 01:24 AM
RE: Form with POST return null - by NiteRaven - 11-26-2018, 08:11 PM
RE: Form with POST return null - by Perhood - 11-27-2018, 01:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB