0

I am using CodeIgniter with HMVC and I would like to use language file for each module in addition to language files from CodeIgniter language folder.

Is this possible?

If yes, how could I do something like that?

E.g. I have a module called footer

with structure like this:

modules
   footer
       controllers
           footer.php
       language
           english
                footer.php 
           czech
                footer.php 
       models
           footer_model.php
       views
           footer.php

and this module would have a message in the view footer.php:

echo $this->lang->line('copyright_message');

Where key copyright_message will be stored in a file footer.php in a folder language/english for English and language/czech for Czech.

How to implement such thing in HMVC for CodeIgniter?

4

1 回答 1

0

It actually works as in CI tutorial. My bad ;).

于 2013-03-27T15:54:07.707 回答