[TYPO3-english] Ext. pagepath does not create a link

Martin Holtz typo3ng_2008 at martinholtz.de
Wed May 27 13:32:17 CEST 2009

Hi Hauke,

> I do not know why, but $result = t3lib_div::getURL($url, false, $headers);
> returns always false (is is in the class.tx_pagepath_api.php) instead of
> the URL.

> This is my simplyfied PHP code in my PHP script which calls the
> extension as mentioned in the manual:
> <?php
> require_once(t3lib_extMgm::extPath('pagepath').'class.tx_pagepath_api.php');
> class tx_extname {
> function main() {
> debug(tx_pagepath_api::getPagePath('8'),'link');
> }
> }
> ?>
have an look in the code - there is t3lib_div used, so you have to
inlcude it too.

But what is your problem? Do you want to use that classes in your own
extension? Or does it not work as expected in the backend?


More information about the TYPO3-english mailing list