Welcome Guest, Not a member yet? Register   Sign In
Language Switcher

How can i create a language switcher in codeigniter 4 ? ( It was simple In codeigniter 3 using hooks)  Confused


Were you unable to find any suggestions in the documentation? https://codeigniter4.github.io/userguide...calization

Hooks are still around, just called Events. So you can probably adapt the way you did it previously there.

However, it might be better to use Controller Filters. You could detect the language in the filter and set it in the session, etc before every page load if you do that globally.

Theme © iAndrew 2016 - Forum software by © MyBB