how do I send a value $msg of my class to the controller? the $ msg variable would be the error message that the class would return and wanted to pass from the class to the