Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Loading language error
  • Fresh install of Fuel, created global.php in app/lang/en with one line:
    Lang::set('app_name', 'Coconuts);
    

    Then in action_index() (as provided by default), first line of the function:
    Lang::load('global');
    

    Get an error:
    ErrorException [ Error ]: Unsupported operand types
    COREPATH/classes/lang.php @ line 45 Any ideas?
  • Why would you use Lang::set() in a language file? It is supported to return an array... And your Lang::set() is missing a closing quote.
  • Oh I just write
    return array('hello', 'hello');
    
    in the language file! Lang::set is for adding on the fly?

Howdy, Stranger!

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

In this Discussion