Search the Community
Showing results for tags 'passing variables to .tpl file'.
Found 1 result
Hello, I am trying to add client's products and services list to the custom.php page, I have use the local API and added this code in custom.php file, $command = 'GetClientsProducts'; $postData = array( 'clientid' => '1', 'stats' => true, ); $adminUsername = 'admin'; // Optional for WHMCS 7.2 and later $results = localAPI($command, $postData, $adminUsername); print_r($results); It displays the results in Json format with print_r, but I don't understand how I can use this in .tpl file to display the client's products on the page. Please Help!