[Typo3-dev] inclusion of a script

Elmar Hinz elmar.hinz at web.de
Tue May 25 15:29:26 CEST 2004


Hello,

another question to development of a file archive plugin.

The links in the files don't call them directly, but indirectly via a php 
script, to control access rights. I did this by defining a new pagetype in typo3 
setup:

##########################################
# This page controls the file output.    #
##########################################

tx_vcdarchive_downloadpage = PAGE
tx_vcdarchive_downloadpage{
   typeNum = 55
   config.pageGenScript = 
EXT:vcd_archive/pi1/class.tx_vcdarchive_pi1_fileOutput.php
}

###########################################


That works for the first, but I don't feel well with it.
I have to include some additional lines into the classfile,
that loads the class and calls the appropriate method.

Is there a smarter access to require the class
and call its output method? Maybe without
a typoScript call in the setup.

Regards

Elmar





More information about the TYPO3-dev mailing list