Welcome Guest, Not a member yet? Register   Sign In
modules and language in codeigniter 4
#1

let assume that the structure of the files as the following
- App
  - Config
  ..... until
  - Modules
    - Admin (inside Admin folder will be controllers and views model config and language)
      - Language
        - en
            - home.php
        - ar
            - home.php

So, my problem is when I want to use lang function I will put the name of the file and then the key of the thing you want to retrieve. Therefore let's say I called the function like that
lang('home.title') home represents the file name and the title represents the key. But it does not retrieve anything from the file and it returns home.title so do I need to put all my translation files
in one folder which is the one inside the app folder? or there is a solution?
Reply


Messages In This Thread
modules and language in codeigniter 4 - by Ahmad Ali - 07-09-2020, 07:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB