Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
registerObject()
2
 
3
register an object for use in the templates
4
 
5
Description
6
===========
7
 
8
void
9
 
10
registerObject
11
 
12
string
13
 
14
object\_name
15
 
16
object
17
 
18
object
19
 
20
array
21
 
22
allowed\_methods\_properties
23
 
24
boolean
25
 
26
format
27
 
28
array
29
 
30
block\_methods
31
 
32
> **Note**
33
>
34
> When you register/assign objects to templates, be sure that all
35
> properties and methods accessed from the template are for presentation
36
> purposes only. It is very easy to inject application logic through
37
> objects, and this leads to poor designs that are difficult to manage.
38
> See the Best Practices section of the Smarty website.
39
 
40
See the [objects section](#advanced.features.objects) for more
41
information.
42
 
43
See also [`getRegisteredObject()`](#api.get.registered.object), and
44
[`unregisterObject()`](#api.unregister.object).