cmigrating to mvc with cold box 3.8

28

Upload: ortus-solutions-corp

Post on 30-Jun-2015

70 views

Category:

Technology


0 download

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

Page 1: CMigrating to mvc with cold box 3.8
Page 2: CMigrating to mvc with cold box 3.8
Page 3: CMigrating to mvc with cold box 3.8
Page 4: CMigrating to mvc with cold box 3.8
Page 5: CMigrating to mvc with cold box 3.8
Page 6: CMigrating to mvc with cold box 3.8
Page 7: CMigrating to mvc with cold box 3.8
Page 8: CMigrating to mvc with cold box 3.8

Show ColdBox.cfc.

Page 9: CMigrating to mvc with cold box 3.8

Show template. Show

Layout,Main.cfm.

Page 10: CMigrating to mvc with cold box 3.8
Page 11: CMigrating to mvc with cold box 3.8

Show implicit views: index, about,

contact.

Page 12: CMigrating to mvc with cold box 3.8
Page 13: CMigrating to mvc with cold box 3.8

Show Main.index,

main.navigationMenu; Update

/views/main/index, show

Main.carousel.

Page 14: CMigrating to mvc with cold box 3.8

Show /main/legacy/carousel.cfm,

converted to Main.carousel with

model.Artwork.

Page 15: CMigrating to mvc with cold box 3.8
Page 16: CMigrating to mvc with cold box 3.8
Page 17: CMigrating to mvc with cold box 3.8
Page 18: CMigrating to mvc with cold box 3.8
Page 19: CMigrating to mvc with cold box 3.8

Show carousel view code.

Page 20: CMigrating to mvc with cold box 3.8

Show /views/artowrk/index.cfm

(implicit view), with setupInterceptor

for prc.artwork.

Page 21: CMigrating to mvc with cold box 3.8
Page 22: CMigrating to mvc with cold box 3.8
Page 23: CMigrating to mvc with cold box 3.8

Layout.Main.cfm: uncomment

message box. Show /security/form

> Security.processform >

/security/success.

Page 24: CMigrating to mvc with cold box 3.8

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
Page 26: CMigrating to mvc with cold box 3.8
Page 27: CMigrating to mvc with cold box 3.8
Page 28: CMigrating to mvc with cold box 3.8