Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

ZaFantasy

By: a guest on Feb 11th, 2010  |  syntax: PHP  |  size: 2.08 KB  |  hits: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. // CREATING URL
  2.  
  3. $conf = array(
  4. 'parameter' => 44,
  5. 'additionalParams' => '&tx_inetiatravel_pi2[program_id]=' . $item['uid'],
  6. 'useCashHash' => true,
  7. 'returnLast' => 'link',
  8. );
  9. $url = $this->cObj->typoLink('', $conf);
  10.  
  11. // REAL URL CONFIGURATION
  12.  
  13. $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
  14.     '_DEFAULT' => array(
  15.         'init' => Array
  16.                 (
  17.                     'enableCHashCache' => 1,
  18.                     'appendMissingSlash' => 'ifNotFile,redirect',
  19.                     'adminJumpToBackend' => 1,
  20.                     'enableUrlDecodeCache' => 1,
  21.                     'enableUrlEncodeCache' => 1,
  22.                     /*'emptyUrlReturnValue' => '/'*/
  23.                 ),
  24.             'pagePath' => Array
  25.                 (
  26.                     'type' => 'user',
  27.                     'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  28.                     'spaceCharacter' => '-',
  29.                     'languageGetVar' => 'L'
  30.                 ),
  31.             'fileName' => Array
  32.                 (
  33.                     'defaultToHTMLsuffixOnPrev' => 0,
  34.                     'acceptHTMLsuffix' => 1
  35.                 ),
  36.             'fixedPostVars' => array(),
  37.            
  38.              'redirects' => array (),
  39.         'postVarSets' => array (
  40.             '_DEFAULT' => array(
  41.                 array('ponudba' =>
  42.                     array('GETvar' => 'tx_inetiatravel_pi2[program_id]',
  43.                         'lookUpTable' => array(
  44.                             'table' => 'tx_inetiatravel_trips',
  45.                             'id_field' => 'uid',
  46.                             'alias_field' => 'title',
  47.                             'addWhereClause' => 'deleted=0 and hidden=0',
  48.                             'useUniqueCache' => 1,
  49.                             'useUniqueCache_conf' => array(
  50.                                 'strtolower' => 1,
  51.                                 'spaceCharacter' => '-',
  52.                                 ),
  53.                             ),
  54.             ),
  55.             ),
  56.  
  57.             )
  58.         )
  59.     ),
  60. );