Create / Edit

Do you think it is better to combine the create / edit record methods in the controller into 1 method?

Or have them as two seperate methods?

IMHO is better to have them separated. I think is less confusing and more scalable in big projects. But that is just my opinion.

Thanks.

Ok what about in the view layer, is it best to have them seperate or all as one view.

i.e. using the if($model->isNewRecord) etc.

The view layer is a different story all together. I try to create views that i can share among controller’s actions.

I have done a similar thing.

I did have my create / edit in the controller, now they two seperate methods. in the view I have joined them up.