[TYPO3-dev] typolink and realurl in eID

Sebastian Gebhard sebastian.gebhard at googlemail.com
Wed Nov 4 11:58:50 CET 2009


Hi folks,

in an AJAX eID request i generate a html snippet containing links. I managed to get typolink basically work in my eID script.

This is what classes I inclused:

<?php

tslib_eidtools::connectDB();
require_once(PATH_tslib.'class.tslib_pibase.php');
require_once(PATH_tslib.'class.tslib_content.php');
require_once(PATH_t3lib.'class.t3lib_page.php');

class tx_myext_eid extends tslib_pibase{
	
	public function main(){
		$GLOBALS['TSFE']->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
		$GLOBALS['TSFE']->tmpl = t3lib_div::makeInstance('t3lib_TStemplate');
		//...
	}
}
?>

Before I included that classes, i could not use typolink and got error messages. Now it basically works but there are no realurl rewrites.
My urls look like http://www.example.com/id=266&param1=value etc
What do I have to include to initialize url rewriting?

Kind regards,
Sebastian




More information about the TYPO3-dev mailing list