I'm creating an addon module which needs to add a page to the client area. I only need one page, so I decided to use Client Area Output. Unfortunately though, it isn't working. When clicking on my added navigation link, it instead shows the client home page.
Here's my client area output function:
function gocardless_clientarea($vars){return['pagetitle'=>'Direct Debit','breadcrumb'=>['index.php?m=gocardless'=>'Direct Debit'],'templatefile'=>'clienthome','requirelogin'=>true,'forcessl'=>false,'vars'=> $vars
];}
and here is clienthome.tpl which I put in my module directory:
Hello World
Any ideas why its rendering the client home instead at http://whmcs/clientarea.php?m=gocardless
Question
Jamesking56
Hello,
I'm creating an addon module which needs to add a page to the client area. I only need one page, so I decided to use Client Area Output. Unfortunately though, it isn't working. When clicking on my added navigation link, it instead shows the client home page.
Here's my client area output function:
and here is clienthome.tpl which I put in my module directory:
Any ideas why its rendering the client home instead at http://whmcs/clientarea.php?m=gocardless
Cheers.
Link to comment
Share on other sites
1 answer to this question
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.