Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Load Language from Module
  • Hey,

    how is it possible to load strings from a language file in a module (outside a module)?

    greez
  • HarroHarro
    Accepted Answer
    The formal answer is: do an HMVC call to a module controller method, and have that load the language file.

    As said before, if you need cross-module calling, you may have a design issue.

    If you absolutely insist, \Lang::load() allows you to pass a fully qualified filename (which must start with a / on *nix systems, and with x:\ on Windows). Note that in this case you have to specify the group name, as you can't use "true".

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion