[TYPO3-german] Pluginausgabe wird gecacht
Rainer Schleevoigt
rainer at webmasterei-hamburg.de
Fri Aug 7 15:53:08 CEST 2009
Mit folgendem TS rufe ich eine Ajaxantwort auf:
ajax = PAGE
ajax {
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/html
}
typeNum = {$typeNumAjax}
20 < {$pluginname}
}
Aufruf ist dann index.php?id=33&type=500&myparam=xyz
Soweit so gut. Nur leider wird mypara ignoriert, trotz verschiedener URL
wird das Plugin gecacht, das heißt ungeachtet von myparam ausgeführt.
Im PI steht dann noch:
class tx_rasgeoblog_pi2 extends tslib_pibase {
var $prefixId = 'tx_rasgeoblog_pi2'; // Same as class name
var $scriptRelPath = 'pi2/class.tx_rasgeoblog_pi2.php'; // Path
to this script relative to the extension dir.
var $extKey = 'ras_geoblog'; // The extension key.
var $pi_checkCHash = true;
function main($content, $conf) {
//ungebufferte Ausgabe:
$tage = array(1,2,3,4,5);
$this->pi_USER_INT_obj = 1;
$cal = new myCal();
if (!$_GET['m']) {
return $cal->getMonthHTML(null,null,$tage,$_GET['thisday']);
} else {
list($y,$m) = explode('-',$_GET['m']);
return $cal->getMonthHTML($m,$y,$tage,$_GET['thisday']);
}
}
}
Das heißt der Parameter m wird ignoriert. Gibt es einen spezellen
Zugriff auf GET-Parameter?
Rainer
More information about the TYPO3-german
mailing list