Only an insane general would have charged a phalanx from the front, I doubt the classic generals were as stupid as the RTW AI.

A charge in the back of an already engaged phalanx unit should cause massive casualties but this is also flawed since RTW phalanx formation allows the unit to instantly turn their sarissas around which would not be possible IRL.