Controller :: loadDataContainer()

Load a set of DCA files.

Description

public static function loadDataContainer($strName, $blnNoCache = false)

Location in Contao 3: system/modules/core/library/Contao/Controller.php
Location in Contao 4: vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php

Parameters

  1. string $strName

    Name of the data container to be loaded.

  2. boolean $blnNoCache

    If set to true, the cache will not be used.

Examples

  1. Display the tl_news parent table

     <?php
    
     \Controller::loadDataContainer('tl_news');
     echo $GLOBALS['TL_DCA']['tl_news']['config']['ptable'];
    

    tl_news_archive

results matching ""

    No results matching ""