Jump to content

Passing variable to the extra page in provisional module


broncha

Recommended Posts

Hi,

 

I am following the documentation for the provisional module for WHMCS.

I am trying to implement "Additional Client Area Pages"

 

My module function is returning the pagearray like this

$result = "this is a test";
		$pagearray = array(	'templatefile'	=>	'accountusagehistory',
							'breadcrumb'	=>	'><a href="#">Account Usage History</a>',
							'vars'			=>	array(	'usage'	=> 	$result,
														'test'	=>	"this is a test variable")
						);
		return $pagearray;

 

in the file accountusagehistory.tpl $test is accessible and displays properly

but $usage is set to NULL.

 

Where am I doing wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated