Thank you for your reply. I did like this it also works that correct?
<?php
if (!defined("WHMCS"))
die("This file cannot be accessed directly");
use Illuminate\Database\Capsule\Manager as Capsule;
function hook_template_variables_example($vars)
{
global $smarty;
$data = Capsule::table('mod_wizardpanelsettings')->get();
foreach($data as $datas)
{
$extra = json_decode(json_encode($datas), true);
}
$array = array(
'favicon' => $extra['favicon']
);
$smarty->assign('wizardpanel', $array);
}
add_hook('ClientAreaHeaderOutput', 1, 'hook_template_variables_example');
?>
I have one last question
In the function 'function demo_output($vars)' how can retrieve the variable '{$WEB_ROOT}' ?
Cordially