Hallo an die Kom
ich hab da ein problem mit dem erstellen bei Modulen
in allen Browseern Klappt es wunderbar
nur leider ist der IE (version 10 und höher) der meinung mal ein Module / Tamplet sauber darzustellen und mal nicht
screenshot.jpg
Der Code vom Module
PHP-Code:
<?php
class ModuleAppucationsProducts extends Module
{
/**
* Template
* @var string
*/
protected $strTemplate = 'mod_appucations_products';
public function generate()
{
if (TL_MODE == 'BE')
{
$objTemplate = new \BackendTemplate('be_wildcard');
$objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['login'][0]) . ' ###';
$objTemplate->title = $this->headline;
$objTemplate->id = $this->id;
$objTemplate->link = $this->name;
$objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id;
return $objTemplate->parse();
}
return parent::generate();
}
/**
* Compile the current element
*/
protected function compile()
{
$test = new Test();
$objJumpTo = \Database::getInstance()->prepare("SELECT * FROM tl_page WHERE id=?")
->limit(1)
->execute($this->jumpTo);
if($objJumpTo->numRows > 0)
{
$url = $this->generateFrontendUrl($objJumpTo->row());
//$this->redirect($url);
}
$rs = Database::getInstance()
->prepare('SELECT * FROM `tl_appucations_products` ')
->execute($queryArgs);
$sql = $rs->fetchAllAssoc();
$this->Template->jumpTo = $url;
$this->Template->sql = $sql;
}
}
der Code vom Tamplet
PHP-Code:
<div>
<?php foreach ($this->Template->sql as $sql): $i++?>
<!-- START DER SCHLEIFE -->
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?><<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>><?php endif; ?>
<a href="<?php echo $this->Template->jumpTo; ?>?id=<?php printf($sql['id']); ?>">
<?php printf($sql['title']); ?>
<?php printf($sql['id']); ?>
</a>
</div>
<!-- ENDE DER SCHLEIFE -->
<?php endforeach; ?>
</div>
ansich nix weltbewegends drin
die einzige lösung die ich gefunden hab war der php befehl
PHP-Code:
ob_get_clean();
vielleicht ist jemanden das schon bekannt und kann mir ein fingerzeigt geben wo ich den fehler machen
schonmal danke im vorraus
Lesezeichen