【问题标题】:language can not change in grocery crud杂货杂货中的语言不能改变
【发布时间】:2017-05-03 12:48:56
【问题描述】:

我将 codeigniter 与 Grocery CRUD 一起使用,我使用 GC 创建了一个表单,但必填字段中的文本是英文的,我希望它是西班牙语的。我阅读了不同的文档并将其放入托盘,但不起作用。
这是我的控制器

$this->crud->set_table('test'); 
$this->crud->set_language('spanish');    
$this->crud->set_subject('Test');
$this->crud->columns('id_test','test'); 
$this->crud->required_fields('test');

$output = $this->crud->render();
$data['contents'] = 'contents';
$data = array_merge($data, (array) $output); 
$this->load->view('template', $data);

在视图中显示如下

The text in the required field

提前致谢。

【问题讨论】:

    标签: php codeigniter grocery-crud required-field


    【解决方案1】:

    一个月后我解决了这个问题。我在system/language/form_validation_lang.php 中添加了一个文件夹Spanish。虽然我将application/conf/conf.php 更改为 Spanish

    的默认语言

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-30
      • 1970-01-01
      • 2014-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多