1
cadch
block how to get xoopsModuleConfig var
  • 2019/11/19 4:01

  • cadch

  • Just popping in

  • Posts: 23

  • Since: 2007/12/17


My block need to read xoopsModuleConfig var
I used xoops2.5.10
block modules/block/xxx.php
$xxx $xoopsModuleConfig['xxx']

show ERROR:Undefined variable: xoopsModuleConfig in file.
My block how to get xoopsModuleConfig var
Thanks~

2
Mamba
Re: block how to get xoopsModuleConfig var
  • 2019/11/19 6:36

  • Mamba

  • Moderator

  • Posts: 11206

  • Since: 2004/4/23


You can use:

global $xoopsModuleConfig;


inside your function.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Username:
Password:

Lost Password? Register now!

Who's Online

67 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 67


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits