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

Rupali rupali.ffm at googlemail.com
Thu Jan 8 14:54:55 CET 2009


i uploaded a file named 'class_ux_tx_realurl.php'  inder ext/realurl:
wrote following code there:

<?php
 class ux_tx_realurl extends tx_realurl {
         function encodeSpURL(&$params, &$ref) {
                 parent::encodeSpURL($params, $ref);
                 echo 'encode:';
                 debug($params['LD']['totalURL']);
         }
         function decodeSpURL($params, &$ref) {
                 echo 'decode:';
                 debug($params['LD']['totalURL']);
                 parent::decodeSpURL($params, $ref);
         }
 }
?>

and under ext_localconf added following at the end:

$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/realurl/class.tx_realurl.php']
= PATH_typo3conf . 'class_ux_tx_realurl.php';

now i am getting following warning:
Warning: Cannot modify header information - headers already sent by (output
started at /kunden/
brainfruit.de/WebRoot/brainfruit.com/www/typo3conf/class_ux_tx_realurl.php:11)
in /kunden/
brainfruit.de/WebRoot/brainfruit.com/www/typo3/sysext/cms/tslib/class.tslib_fe.phpon
line 3226


what should i do?

2009/1/8 Xavier Perseguers <typo3 at perseguers.ch>

> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list