Q&A

Q1: You mentioned that there were more sophisticated models for managing dispatch. Did you have anything in mind?
A1: One of the problems with the dispatch logic presented in this hour is that it works only with the first command called by the Controller. This is not as flexible as it might be. A better solution would be to take into account every command called together with its return value. This would enable you to map templates to complex combinations of commands. One way of managing something like this would be to represent the commands and return values in XML as a DOM object and to implement code in XSLT to match different command/status combinations.
Q2: Well, that’s it. What next?
A2: Now it’s up to you. This book contains enough ...

Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.