Registry
Final class Phalcon\Registry
implements ArrayAccess, Iterator, Traversable, Serializable, Countable, JsonSerializable
A registry is a container for storing objects and values in the application space. By storing the value in a registry, the same object is always available throughout your application.
$registry = new \Phalcon\Registry(); // Set value $registry->something = 'something'; // or $registry['something'] = 'something'; // Get value $value = $registry->something; // or $value = $registry['something']; // Check if the key exists $exists = isset($registry->something); // or $exists = isset($registry['something']); // Unset unset($registry->something); // or unset($registry['something']); In addition to ArrayAccess, Phalcon\\Registry also im