Welcome Guest, Not a member yet? Register   Sign In
Call to protected method CodeIgniter\Language\Language::load() from scope CodeIgniter
#5

Do you want to load the whole file to be used in a view or are you looking to use language specific strings in your view?
The most obvious way to use a language string is something like this:
PHP Code:
<?= lang('General.Actions'?>

Where there is an existing file in the Language/en folder with the name 'General.php'.
Content would be:
PHP Code:
<?php

return [
    'Actions'          => 'Actions',
]; 
If this is not what you're looking for, be a bit more specific on what you are trying to achieve.
Reply


Messages In This Thread
RE: Call to protected method CodeIgniter\Language\Language::load() from scope CodeIgniter - by JustJohnQ - 02-10-2025, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB