Redirect vs load view |
I think from a programmer's POV a redirect to a controller is easier to read and maintain as a controller can execute a bunch of things in one go.
Now the bad things is you want to limit http requests. I think best practice is an example with form validation. If form validate fails, load a view file (this is necessary if you are using flash data) If it is successful do a redirect to a controller. ^I mean this is what I do. I'd be interested to know if this is best practice though. It just seemed logical to me.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
|
Messages In This Thread |
Redirect vs load view - by Serializable - 09-16-2018, 10:22 AM
RE: Redirect vs load view - by InsiteFX - 09-17-2018, 03:45 AM
RE: Redirect vs load view - by Serializable - 09-17-2018, 06:59 AM
RE: Redirect vs load view - by Pertti - 09-17-2018, 08:00 AM
RE: Redirect vs load view - by Wouter60 - 09-17-2018, 08:37 AM
RE: Redirect vs load view - by dave friend - 09-17-2018, 09:16 AM
RE: Redirect vs load view - by Serializable - 09-17-2018, 12:25 PM
RE: Redirect vs load view - by dave friend - 09-17-2018, 04:43 PM
RE: Redirect vs load view - by ignitedcms - 09-21-2018, 11:46 PM
|