Skip to content

Smarty_Internal_Method_RegisterDefaultTemplateHandler

Smarty Method RegisterDefaultTemplateHandler

Smarty::registerDefaultTemplateHandler() method

  • Full name: \Smarty_Internal_Method_RegisterDefaultTemplateHandler

Properties

objMap

Valid for Smarty and template object

public int $objMap

Methods

registerDefaultTemplateHandler

Register template default handler

public registerDefaultTemplateHandler(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj, callable $callback): \Smarty|\Smarty_Internal_Template

Parameters:

Parameter Type Description
$obj \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty
$callback callable class/method name

Throws:

if $callback is not callable


_getDefaultTemplate

get default content from template or config resource handler

public static _getDefaultTemplate(\Smarty_Template_Source $source): mixed
  • This method is static.

Parameters:

Parameter Type Description
$source \Smarty_Template_Source

Throws:



Automatically generated on 2025-03-18