mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-29 21:14:05 +02:00
related to #1693 changed smarty version to 4.1.0
This commit is contained in:
committed by
plegall
parent
25570529a7
commit
ecfa090d6d
@@ -0,0 +1,44 @@
|
||||
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](#advanced.features.objects) for more
|
||||
information.
|
||||
|
||||
See also [`getRegisteredObject()`](#api.get.registered.object), and
|
||||
[`unregisterObject()`](#api.unregister.object).
|
||||
Reference in New Issue
Block a user