Can you show me three controllers please?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Can you show me three controllers please?

Post by alex.barylski »

Just curious, many of us who use MVC frameworks commonly implement our controllers quite differently, assuming we try and separate concerns by keeping models, views and controller code separate.

Would you be willing to show me 2 or 3 controller action methods, from one of your projects?

Specifically I'd like to see one that generates a complex view, one that creates a record in a database and post's back to original form and lastly, if possible, an action which builds the form to submit requests to the previous action.

Hopefully this isn't asking much, but I'd like to get a feel for what controllers look on average and possibly avoid pitfalls I am probably making in my own controllers.

psudo code is fine but make it realistic, please.

Cheers,
Alex
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Can you show me three controllers please?

Post by josh »

Check your PMs
Post Reply