paktangent Posted September 14, 2012 Share Posted September 14, 2012 I am trying to add a custom page in client area to list invoices. I have created a module for it. I have a function named function invoice_generate_clientarea ($vars ) { return array( 'templatefile' =>'moduletemplate.tpl' ); } Now when i go to whmcs/index.php?m=invoice_generate nothing is displayed. I have specified a template file in the above function and that templatefile moduletemplate.tpl also exists in module folder. 0 Quote Link to comment Share on other sites More sharing options...
paktangent Posted September 14, 2012 Author Share Posted September 14, 2012 The template name used in function is 'templatefile' => 'moduletemplate' I appended tpl by mistake.. Stll it is not working .. @sparky has a module himself... I hope he can help upon it. No code is available for me to browse through, so i can sort the solution my self... this forum seems to be only resort. I hope some one will help. Thanks 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 15, 2012 Share Posted September 15, 2012 Maybe it's because you need the full array of vars as per the docs http://docs.whmcs.com/Addon_Modules#Client_Area_Output 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.