I'm stll relatively new to cakephp (1.3) and struggling with where to put the code to do the following.
I want to display fields from a database (as usual) but, if the value for one of the fields is null, I want to look up the value using a web service and, if the request is successful, write the returned value to the database before returning the new value. I've already written the code to look up the web service, I'm just not sure exactly where to put it (model or controller) to make it work most effectively.
Thanks - I'd appreciate any suggestions.