Update controller.php

Fix issue https://github.com/jonseg/crud-admin-generator/issues/26