Book Image

TYPO3 Extension Development

Book Image

TYPO3 Extension Development

Overview of this book

Table of Contents (13 chapters)

Updating Code Files


Updating code files makes sure that an extension code is free from obvious errors.

Checking the Code

The first thing to do is to check your code again. Some things may have been missed during development, and now it is time to recover them. Use the following checklist to check your code.

  • Are all the require_once statements in place?

    It is easy to forget some of these statements during development if you are logged into TYPO3 Backend and running Frontend code. The code will work, but it will fail when running standalone.

  • Are all the request parameters checked?

    It is not enough to assign a variable from a request parameter and assume that it is always in the correct format. Check it and substitute it with a good default, or show an error message if defaults are not possible. The same goes for TypoScript setup.

  • Are all SQL parameters sanitized?

    SQL injection is the most common problem for beginner PHP programmers and sometimes even for experienced programmers. Always use the fullQuoteStr...