November 18, 2008

Prado PHP Framework HOW TO 3 - Store a Value To A Global Variable

To store a value to a Global Variable in Prado you can do;
$this->application->setGlobalState("variable", "value");

and to get it from another page in your application;

$this->application->getGlobalState("variable");

that's it.

No comments: