O'Reilly logo

Mastering Joomla! 1.5 Extension and Framework Development by Chuck Lanham, James Kennard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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 die() and 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 $mainframe->close().

Handling input from a URI query is very easy in Joomla! and the data type casting alone provides us with a massive form ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required