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