jordanlev/c5_boilerplate_crud — pull request #12 by cryophallion (2014-04-20 22:46:11+00:00)
Title: set new record post to a generic id

And another quick one.

Since I assume you always use id as your pkid, I don't assume you've run into this...

If you leave this as just 'id', then everything in your controller can be left nice and generic as id, and the model can set the proper pkid, as it should. This one line forces you to change every instance of the $id in the edit class though, and the views, to the named pkid in the model. It would be better to leave this mostly generic, to keep things simple.

This one is far more up for discussion, but I wanted to present it as an option