[TYPO3-english] how to remove the trailing slash from url's

Xavier Perseguers typo3 at perseguers.ch
Thu Jan 8 13:27:43 CET 2009


Hi,

> how do i provide path to my 'class_ux_tx_realurl.php' file?
> 
> e.g i want this:
> 
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> =  'class_ux_tx_realurl.php';
> 
> so should it be:
> 
> *
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
> **= PATH_typo3conf . 'class.ux_tx_realurl.php';*
> *or,*
> *
> 
> $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl_advanced.php']
> 
> 
>  = t3lib_extMgm::extPath('') . 'class.ux_tx_realurl_advanced.php';

You mean prepending with PATH_typo3conf or t3lib_extMgm::extPath(''). I 
would use PATH_typo3conf if it is stored in typo3conf but the extPath() 
method if you store it in one of your extensions. However I wouldn't use 
an empty key as parameter for extPath.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list