Welcome Guest, Not a member yet? Register   Sign In
Language Bug
#1

Hi!

I'm migrate from CI3 to CI4 and I think have a bug on lang general function. When I call it, according the guide, the system return me the variable and not the message.

In Model:

$teste = lang("Logout.NoUser", [], "pt-BR");
return $teste;

Structure:
app/Language/pt-BR/Logout.php

<?php

return [
    "Logout.NoUser"          => "User not found",
];


When return from model is passed to the view...

View:
[Image: d368c910be.png]
Reply


Messages In This Thread
Language Bug - by ajmeireles - 01-28-2020, 07:04 PM
RE: Language Bug - by zahhar - 01-29-2020, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB