Welcome Guest, Not a member yet? Register   Sign In
Those damn language files kill you: HMVC
#2

Where did you put the file and how did you attempt to load it?

If I remember correctly, it should work in either /application/language/dutch/members_lang.php or /application/modules/members/language/dutch/members_lang.php, assuming that you're in a module named members. One of the common issues I've seen with loading files in HMVC comes up when loading files from one module within another module (which in itself is probably an issue, but not the point at the moment). For instance, if the file is in your members module, but you're currently in another module, it will look in the current module's language directory or the application directory, but it will only look in the members module if you load it like this:
PHP Code:
$this->lang->load('members/members'); 

For this reason, any modules I do create which I expect to be shared widely in the application (or when I'm loading files within Bonfire's modules) will use this format even within the module itself to ensure that the loader looks in the right module.
Reply


Messages In This Thread
RE: Those damn language files kill you: HMVC - by mwhitney - 07-29-2015, 12:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB