3 ms·
The data access code was intended to display as simply as possible how the Model should be architected in regards to encapsulation. Switching out the data acces
by herewego 18y ago
The data access code was intended to display as simply as possible how the Model should be architected in regards to encapsulation. Switching out the data access code itself with something more robust, while still maintaining the overall Model architecture is in fact encouraged. I should have made that more clear, thanks for the feedback.
- thwarted 18y agoI really think that any documentation that has to do with interacting with a database via SQL needs to not even hint at the fact that you should, or even can, build queries as strings. The security in apps have truly suffered because of PHP's documentation in this regard.