Police have charged two men after a police officer was attacked outside of a north-end school Monday.

Cory Andrea Royer, 18, was charged with assaulting a peace officer and resisting arrest.

David Randel Patton, 20, was charged with aggravated assault, possession of two weapons -- a baseball bat and a switchblade.

None of the allegations have been proven in court.

The charges comes a police officer received a concussion and severe bruising to his face after he was attacked outside a north-end school Monday during a routine arrest.

The assault happened shortly after he noticed a car "stunting" in the area of 114 Avenue and 68 Street during the noon hour, police said.

"He was just out supervising and this car was driving really recklessly so he was trying to stop them," student Jennifer Lawrence said.

As the officer went to approach the driver of the stunting car, who was talking to another person in a nearby vehicle outside of Eastglen high school, the driver pushed the officer.

The officers then used pepper spray to get the man to the ground.

When the officer was arresting the driver, a passenger from the stunting car got out and kicked the officer in the head, knocking him unconscious.

Police said a teacher saw the attack and held down the suspect until more police could arrive. The suspects, believed to be former students of Eastglen high school, allegedly knew the officer.

Stunting is a police term for people creating excessive noise from their cars through tire squealing, hanging out of windows or yelling at pedestrians.

The officer was taken to hospital and treated for his injuries.

A spokesperson for the Edmonton Police Service said the officer will be off for the rest of the week.