Project

General

Profile

Actions

Task #47203

closed

Cleanup require and require_once

Added by Stefan Neufeind over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2013-04-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

  • Use DIR instead of dirname(FILE) (since TYPO3 5.3.0)
  • Use DIR for refering to relative paths
    to make sure the correct file is included (no search in path)
  • Use require for parts which contain code to be executed
  • Use require_once for loading classes ("just once")
Actions

Also available in: Atom PDF