- 7.2. Opt_View class
7.2.7. assignGlobal() - 7.2.6. assign()
« Previous - 7.2.8. assignGroup()
Next »
7.2.7. assignGlobal()
| Construct | Static method |
|---|---|
| Visibility | public |
| Reference | void assignGlobal( string $name, mixed $data ) |
Assigns the $data to the global template variable $name:
Opt_View::assignGlobal('object', 'sunglasses');
The template:
<p>Hello my friend, do you need {$global.object}?</p>
See also:
- 7.2.7. assignGlobal()
7.2. Opt_View class - « Previous
7.2.6. assign() - Next »
7.2.8. assignGroup()