Решение состоит в том, чтобы изменить view.p html
До :
a href = $ this-> url ('customer', ['action '=>' edit '])?>
После :
a href = $ this-> url (' customer ', [' action '=>' edit ',' id '=> $ customer-> id])
С этим' id 'вы можете использовать: $ id = (int) $ this-> params () - > fromRoute ('id', '0'); in editAction ()