public static function exec($sql, $bindings = array()) { return self::query('exec', $sql, $bindings); }
public function logout() { $adminId = $this->app->getSession()->get('adminId'); $sql = "delete from `adminsession` where `admin_id` = '" . $adminId . "'"; R::exec($sql); $this->app->getSession()->remove('adminId'); }