registry = $registry; $this->db = $this->registry->shared('db'); } /** * Load automatically models * * @access public * @param string $name Model name * @return mixed */ public function __get($name) { return Tool::loadModel($this->registry, $name); } }