2017-05-03 7 views
0

Grocery CRUDでcodeigniterを使用していますが、GCでフォームを作成しましたが、必須フィールドのテキストは英語であり、スペイン語で欲しいです。私は別のドキュメントを読んでトレイを作ってもうまくいきません。
これは私のコントローラ
grocery crudで言語を変更することはできません

$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

おかげのようなビューのショーです。

答えて

0

1ヶ月後に問題を解決します。フォルダsystem/language/に、をform_validation_lang.phpに追加します。 のデフォルト言語はapplication/conf/conf.phpですが、スペイン語

関連する問題