CMigrating to mvc with cold box 3.8
28
-
Upload
ortus-solutions-corp -
Category
Technology
-
view
69 -
download
0
description
Learn how to "think MVC" while bringing your code into the present day. Taking a step-by-step approach, we'll cover the basics of handlers, views, plugins, interceptors and models. We’ll also cover a handful of security issues that have come to light since your legacy code was first created and how to address them with ColdFusion and ColdBox.
Transcript of CMigrating to mvc with cold box 3.8
![Page 1: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/1.jpg)
![Page 2: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/2.jpg)
![Page 3: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/3.jpg)
![Page 4: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/4.jpg)
![Page 5: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/5.jpg)
![Page 6: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/6.jpg)
![Page 7: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/7.jpg)
![Page 8: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/8.jpg)
Show ColdBox.cfc.
![Page 9: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/9.jpg)
Show template. Show
Layout,Main.cfm.
![Page 10: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/10.jpg)
![Page 11: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/11.jpg)
Show implicit views: index, about,
contact.
![Page 12: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/12.jpg)
![Page 13: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/13.jpg)
Show Main.index,
main.navigationMenu; Update
/views/main/index, show
Main.carousel.
![Page 14: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/14.jpg)
Show /main/legacy/carousel.cfm,
converted to Main.carousel with
model.Artwork.
![Page 15: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/15.jpg)
![Page 16: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/16.jpg)
![Page 17: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/17.jpg)
![Page 18: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/18.jpg)
![Page 19: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/19.jpg)
Show carousel view code.
![Page 20: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/20.jpg)
Show /views/artowrk/index.cfm
(implicit view), with setupInterceptor
for prc.artwork.
![Page 21: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/21.jpg)
![Page 22: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/22.jpg)
![Page 23: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/23.jpg)
Layout.Main.cfm: uncomment
message box. Show /security/form
> Security.processform >
/security/success.
![Page 24: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/24.jpg)
ColdBox.cfc, uncomment
csrfInterceptor. Show /security/form
(w/o token) > Security.processform
> /security/error. Add token.
![Page 25: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/25.jpg)
![Page 26: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/26.jpg)
![Page 27: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/27.jpg)
![Page 28: CMigrating to mvc with cold box 3.8](https://reader033.fdocuments.us/reader033/viewer/2022052323/5591d8461a28ab04468b46ad/html5/thumbnails/28.jpg)