public function action_index() { $model = new Model($this->curr_db); $attributes = array("AUTOCOMMIT", "ERRMODE", "CASE", "CLIENT_VERSION", "CONNECTION_STATUS", "ORACLE_NULLS", "PERSISTENT", "SERVER_INFO", "SERVER_VERSION"); $info = array(); foreach ($attributes as $val) { $info[$val] = $model->getAttribute(constant("PDO::ATTR_{$val}")); } $this->content = View::factory('myadmin/index'); $this->content->info = $info; }