[TYPO3-dev] eID and mvc Classes
JC.Lukas
masterjcl at gmx.de
Sun Apr 27 16:36:39 CEST 2008
Typo3-dev,
I have a Problem with load tx_lib_link and use in eID Script to
create realurl links
the error from code follow is
Fatal error: Call to a member function getPage() on a non-object in /srv/www/typo3_quellen/typo3_src-4.1.5/typo3/sysext/cms/tslib/class.tslib_content.php on line 5176
code --------------------
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
header('Content-Type: text/html; charset=iso-8859-1');
header("Pragma: no-cache");
header("Expires: 0");
require_once(PATH_tslib . 'class.tslib_pibase.php');
require_once(PATH_tslib . 'class.tslib_eidtools.php');
require_once(PATH_tslib . 'class.tslib_content.php');
require_once(t3lib_extMgm::extPath('div') . 'class.tx_div.php');
class det extends tslib_pibase {
var $feUserObj = null;
function main(){
$this->feUserObj = tslib_eidtools::initFeUser();
tslib_eidtools::connectDB();
$linkClassName = tx_div::makeInstanceClassName('tx_lib_link');
$link = new $linkClassName();
$link->destination(1);// Test only
$link->noHash();
print $link->makeUrl();
}// end main
}// end class
// create Instance and Start the Service
$output = t3lib_div::makeInstance('det');
$output->main();
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tower/det.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tower/det.php']);
}
?>
---------------------- end code
--
Mit freundlichen Grüssen
JC.Lukas
mailto:masterjcl at gmx.de
More information about the TYPO3-dev
mailing list