\Smarty_Internal_Method_RegisterResource

Smarty Method RegisterResource

Smarty::registerResource() method

Summary

Methods
Properties
Constants
registerResource()
$objMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$objMap

$objMap : integer

Valid for Smarty and template object

Type

integer

Methods

registerResource()

registerResource(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty  $obj, string  $name, \Smarty_Resource|array  $resource_handler) : \Smarty|\Smarty_Internal_Template

Registers a resource to fetch a template

Parameters

\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
string $name

name of resource type

\Smarty_Resource|array $resource_handler

or instance of Smarty_Resource, or array of callbacks to handle resource (deprecated)

Returns

\Smarty|\Smarty_Internal_Template