HostT Posted December 4, 2020 Share Posted December 4, 2020 I have built a custom provisioning module for our site, as well as an addon module (for settings and few other misc items). In the addon module I have the configuration for enabling TEST mode, and setting OAuth configuration values .. but I need to be able to access these from the Provisioning Module. Haven't messed with WHMCS dev in 5+ years, can't remember if there's a specific way of doing this or if i'm going to have to create my own SQL table for storing this (which would be VERY cumbersome). Thanks! 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted December 9, 2020 Share Posted December 9, 2020 Have not tried, but using the WHMCS\Module\Addon\Setting internal class may work. Otherwise, getting basically the same via a capsule call would do what you want: $Setting = Capsule::table('tbladdonmodules') ->where('module', $modulename ) ->where('setting','moduleSettingName') ->value('value'); 1 Quote Link to comment Share on other sites More sharing options...
HostT Posted December 10, 2020 Author Share Posted December 10, 2020 Awesome, thank you @steven99! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.