Ich versuche Contao zu verstehen... ;=)
Was bedeutet diese Code hier:
PHP-Code:
public function generate()
{
if (TL_MODE == 'BE')
{
$objTemplate = new BackendTemplate('be_wildcard');
$objTemplate->wildcard = '### EVENT LIST ###';
$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();
}
...
- Warum hier Abfrage if (TL_MODE == 'BE') - ich bin doch im Frontend Modul?
- Was ist das Template 'be_wildcard' und wozu wird es hier geparst?
Und z.B. dann noch das hier:
PHP-Code:
// Show the event reader if an item has been selected
if ($this->cal_readerModule > 0 && (isset($_GET['events']) || ($GLOBALS['TL_CONFIG']['useAutoItem'] && isset($_GET['auto_item']))))
{
return $this->getFrontendModule($this->cal_readerModule, $this->strColumn);
}
- was ist $this->cal_readerModule und wo kommt es her?
- was wird da zurückgegeben?
Danke
Axel
Lesezeichen