Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   получить переменную из RealURL в 2 расширения (http://forum.typo3.ru/showthread.php?t=8284)

3ton 11.01.2010 16:07

получить переменную из RealURL в 2 расширения
 
имеется правило в localconf.php

Код:

               
'experts'        =>        array(
        array(
                'GETvar'        =>        'tx_astro7experts_pi1[cat_mode]',
                'valueMap'        =>        array(
                        'first-free-call'        =>        1,
                        'free'                        =>        2,
                        'top'                        =>        3,
                        'new'                        =>        4,
                        'profiles'                =>        5,
                ),
                'noMatch'                        =>        'bypass',
        ),
        array(
                'GETvar'        =>        'tx_astro7experts_pi1[var1]'
        ),
        array(
                'GETvar'        =>        'tx_astro7experts_pi1[var2]'
        ),

но возникла необходимость использовать переменные
tx_astro7experts_pi1[var1] и tx_astro7experts_pi1[var2]
в другом расширении, как получить к ним доступ???

Valery Romanchev 11.01.2010 16:27

$tmp1 = t3lib_div::_GP('tx_zzz_pi1');

потом например intval($tmp1['var1']);

3ton 15.01.2010 14:55

спасибо!
все отлично завелось!!!


Часовой пояс GMT +4, время: 20:08.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot