We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

$LANG global in hook method not working...

Development and Programming

jturmel's avatar
jturmel
1 posts
17 years ago
jturmel's avatar jturmel

For some reason in the method that the hook is calling does not pulling in the variables from the extensions coordinating language file. The only way I can get it to work is to actually load the language file ($LANG->fetch_language_file(’extension’);)

This only is a problem in the method the hook calls, it pulls in the $LANG anywhere else I’ve used it in the class (extension.)

Any ideas? Is this by design?

Josh

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

hey jturmel,

Thats expected behavior in this case and by design. The only time you would normally call a language file for an extension is for the settings panel (if it has any) and not within the actual method. Many extensions don’t need a language file at all so its not done for you.

Jamie

       
terrystorch's avatar
terrystorch
1 posts
17 years ago
terrystorch's avatar terrystorch

[]

       
jturmel's avatar
jturmel
1 posts
17 years ago
jturmel's avatar jturmel

Sounds good, just wanted to make sure.

Thank you, Josh

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.