Hi,
I created an object in my model and I’m trying to use populateModel in my handler, but I get this error when I try to call the populateModel() method.
Error Type: Application : [N/A]
Error Messages: The method getContext was not found in component coldbox.system.web.Controller.
Ensure that the method is defined, and that it is spelled correctly.
Below is my boilerplate handler code:
I have a file called “Registration.cfc” in my models directory as well.
It looks like:
component accessors=“true”{
// properties
property name=“email”;
property name=“password”;
property name=“accountType”;
// validation
this.constraints = {
email = {required=true,type=“email”},
password = {required=true},
accountType = {required=true}
};
function init(){
return this;
}
}