module() public static method

public static module ( $Name, array $Properties = [] ) : mixed | string
$Name
$Properties array
return mixed | string
Example #1
0
/**
 *
 *
 * @param array $Params
 * @param object $Smarty
 * @return string
 */
function smarty_function_module($Params, &$Smarty)
{
    $Name = val('name', $Params);
    unset($Params['name']);
    $Result = Gdn_Theme::module($Name, $Params);
    return $Result;
}
 public function profileController_beforeUserInfo_handler($sender)
 {
     echo Gdn_Theme::module('UserPhotoModule');
 }