Skip navigation

On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of Lynda.com means you agree to these revised documents, so please take a few minutes to read and understand them.

Model callbacks

Model callbacks: Learning CakePHP 2
Model callbacks: Learning CakePHP 2

Model callbacks are a powerful technique to modify entries as they flow through the data layer. In this CakePHP training video, Justin Yost will demonstrate using the beforeSave callback to trigger save logic before changing a record, as well as afterSave to send an email after successful validation to the database.

Resume Transcript Auto-Scroll
Skill Level Intermediate
4h 55m
Duration
37,683
Views
Show More Show Less

Q: I can't open the exercise files. What's this .7Z extension?

A: The .7Z extension is for a 7-Zip file. 7-Zip is an open-source file compression standard that is similar to a ZIP file, but it has a much better compression rate in certain situations. For the exercise files in this course, using a standard ZIP file would have added around 150MB to the download size, so we opted for a more efficient format.
 
To extract the .7Z file, you'll need some free software. If you visit 7-zip.org, you can find free, open-source software for Windows. For Mac users, please see kekaosx.com to download Keka, a free application that can do the same. For those with software security policies in place, Keka is also available on the Mac App Store for $1.99.
 

Skills covered in this course
Developer Web Web Development CakePHP

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now