localization issue |
(04-29-2021, 05:16 PM)includebeer Wrote: What do you mean by IT controller and EN controller? When using localization you don't need separate controller for each languages. The text is pulled from the language files but the logic in the controller is the same. Is you want different logic for a specific language you do as demyr said. Use getLocale() to make an if statement. Sorry all logic in one controller? Something like this: PHP Code: class Helloworld extends BaseController and after what is the route for have a link like: www.mydomain.com/en/about-us or www.mydomain.com/it/chi-siamo ? PHP Code: $routes->get('{locale}/about-us', 'Helloworld::about_us'); INSTEAD If i have 2 separate controller can i use localization and placeholder {locale}? Is there a method more correct for this case? A little example: https://drive.google.com/drive/folders/1...sp=sharing Thanks for help me. |
Messages In This Thread |
localization issue - by eleumas - 04-29-2021, 04:34 AM
RE: localization issue - by demyr - 04-29-2021, 09:02 AM
RE: localization issue - by includebeer - 04-29-2021, 05:16 PM
RE: localization issue - by eleumas - 04-30-2021, 02:45 AM
RE: localization issue - by demyr - 04-30-2021, 06:47 AM
RE: localization issue - by eleumas - 04-30-2021, 07:01 AM
RE: localization issue - by includebeer - 04-30-2021, 07:31 AM
RE: localization issue - by demyr - 04-30-2021, 07:54 AM
RE: localization issue - by eleumas - 05-04-2021, 12:45 AM
RE: localization issue - by InsiteFX - 05-04-2021, 02:13 AM
RE: localization issue - by paliz - 05-04-2021, 11:11 AM
RE: localization issue - by eleumas - 05-11-2021, 12:06 AM
RE: localization issue - by includebeer - 05-11-2021, 04:31 AM
RE: localization issue - by eleumas - 05-11-2021, 01:01 PM
RE: localization issue - by InsiteFX - 05-12-2021, 02:06 AM
|