In this chapter we have discussed common error and security issues that we must address to make our extensions as safe and secure as possible. We have covered error handling, input request data validation, access control, and attack prevention.
Although we may never receive an error message from our extensions, the
JError class gives us all of the necessary tools to ensure that any errors that are encountered can be cleanly dealt with. Using the PHP
exit() functions can potentially 'break' the current users session; we should always exit cleanly. If
JError isn't up to this task, we should use
Handling input from a URI query is very easy in Joomla! and the data type casting alone provides us with a massive form ...