Last active
December 14, 2015 01:49
-
-
Save BugBuster1701/5009577 to your computer and use it in GitHub Desktop.
dcaconfig.php und Contao 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Contao 2 | |
if ($this->User->isAdmin) | |
{ | |
... | |
} | |
//Contao 4 | |
if (BackendUser::getInstance()->isAdmin) | |
{ | |
… | |
} | |
/* Grund: This is due to the Controller::loadDataContainer() method being static now. */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LF: Hm, you are right. Maybe we should continue to load the files in the object context and only change it in Contao 4.