Welcome Guest, Not a member yet? Register   Sign In
Unable to obtain modular language file
#1

(This post was last modified: 07-25-2020, 08:46 PM by jailin.)

I cannot get the modular language file

This is the Controller in my module
PHP Code:
<?php 
namespace Mod\System\Controllers;

use 
App\Controllers\BaseController;
use 
Mod\System\Models\System;

class 
SystemSetting extends BaseController
{
    public function baseSetting()
    {
        $data = [];
        $data['page_title'] = lang('BaseSetting.page_title');
        $data['breadcrumbs'] = [];
  
        array_push
($data['breadcrumbs'], [
            'title' => lang('Comm.dashboard'),
            'link' => site_url('admin')
        ]);
        
        array_push
($data['breadcrumbs'], [
            'title' => lang('BaseSetting.page_title'),
            'link' => '#'
        ]);
       
        
return view('\Mod\System\Views\baseSettingShow'$data);
    }


This is the Controller in my module

Code:
<?php

return [
    'page_title' => 'Base Setting'
];


my file path

[Image: Ep8TQW.png]

This is the execution result

PHP Code:
array(2) {
  ["page_title"]=>
  string(22"BaseSetting.page_title"
  ["breadcrumbs"]=>
  array(2) {
    [0]=>
    array(2) {
      ["title"]=>
      string(9"仪表板"
      ["link"]=>
      string(30"http://ci.test/index.php/admin"
    }
    [1]=>
    array(2) {
      ["title"]=>
      string(22"BaseSetting.page_title"
      ["link"]=>
      string(1"#"
    }
  }



page_title display is wrong
Reply
#2

(This post was last modified: 07-25-2020, 12:07 PM by jreklund.)

Please update your post using code blocks instead if images. It's more future proof. Also include your language files.

Code:
[php]Your code here[/php]

PS. Don't use extra large text, nobody likes that.
Reply
#3

(07-25-2020, 12:06 PM)jreklund Wrote: Please update your post using code blocks instead if images. It's more future proof. Also include your language files.

Code:
[php]Your code here[/php]

PS. Don't use extra large text, nobody likes that.

Ok, I have updated my question
Reply




Theme © iAndrew 2016 - Forum software by © MyBB