Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
TYPO3 Extension Development

You're reading from   TYPO3 Extension Development

Arrow left icon
Product type Paperback
Published in Sep 2008
Publisher
ISBN-13 9781847192127
Length 232 pages
Edition Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Dmitry Dulepov Dmitry Dulepov
Author Profile Icon Dmitry Dulepov
Dmitry Dulepov
Arrow right icon
View More author details
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image