It's weird that you can't do it normally, because in BI you just select shield wall units, click special ability button then right click and drag and yuo've got yourself one long shield wall. Weird that you can't do it for phalanxes.