Phalanx were used
The Phalanx spearmen were in front, archers behind, and cavalry ready to flank on the sides of the phalanx.
Phalanx formations stretched over the battlefield. Usually, the right flank was guarded by elite troops. Choices were sometimes made to have a heavier right or left flank by adding troops in depth...
Phalanx
A Phalanx Formation.