XOrgPage::gassign
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 11 Jan 2005 15:18:09 +0000 (15:18 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:26 +0000 (23:27 +0200)
commitb29435ac027d4162583726ca6043450461301a40
tree4180c791fae13a2a6aac99a757692615ef2d759e
parent4e86c32ea9d6e969d57847d980d936317a90bd25
XOrgPage::gassign

This is sooooo useful :

instead of :

$page->assign('foo', $foo);

you can now use :

$page->gassign('foo');

beware of the fact that it cannot work in a function since it uses the global mechanism.

it still saves from a lot of pain in the plain .php top level

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-288
include/xorg/page.inc.php