Just like the title says, I'd like to use Cake's Active Record DAL within a vendor class. I'm currently using the Blueimp jQuery File Upload plugin, and would like to extend it's upload handler so I can save file info to the db using Cake.
I'm loading the upload handler via
App::import('Vendor', 'jQueryFileUpload/UploadHandler');
What i'd like to do is load CustomUploadHandler that extends UploadHandler
App::import('Vendor', 'jQueryFileUpload/CustomUploadHandler');
And instead of creating a new connection and using SQL, I'd like to use methods like save()
and saveAll()
in CustomUploadHandler
. Any suggestions?