View file lib/registry.php
<? class Registry{ protected function __construct() {} protected function __clone() {} protected static $method = array(); static public function get($name){ return (isset(self :: $method[$name])) ? self :: $method[$name] : 0; } static public function set($name, $data){ self :: $method[$name] = $data; } } ?>