PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-register-object.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-register-object.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/programmers/api-functions/api-register-object.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 2 months ago
Size: 768 bytes
 

Contents

Class file image Download

registerObject()

register an object for use in the templates

Description

void

registerObject

string

object\_name

object

object

array

allowed\_methods\_properties

boolean

format

array

block\_methods

> Note > > When you register/assign objects to templates, be sure that all > properties and methods accessed from the template are for presentation > purposes only. It is very easy to inject application logic through > objects, and this leads to poor designs that are difficult to manage. > See the Best Practices section of the Smarty website.

See the objects section for more information.

See also getRegisteredObject(), and unregisterObject().