This version checks to make sure PHP didn’t run in to an error of some kind when executing the find action. How do you revise the Rfm example to handle the no-records-found problem?
It already does. In Rfm, no records found isn’t an error. It just means you get an empty set of records back. Since Ruby is happy to loop through an empty array (it simply doesn’t enter the loop), your total will calculate without trouble. (If you want Rfm to raise an error when no records are found, you can tell it to. But usually you don’t want it to.
Related Questions
- This version checks to make sure PHP didn’t run in to an error of some kind when executing the find action. How do you revise the Rfm example to handle the no-records-found problem?
- When I try to run Eureka with version 2.31 of Aemulor (or Aemulor Pro, I get an error message "Fatal error! Cannot initialise cursor subsystem" - why?
- Can we run automated programmes with the full version,i.e. Will the message boxes requesting user action disappear?