- Von Contao.org -> Erweiterung heruntergeladen und entpackt.
- Der Ordner rocksolid-slider via FTP auf den Server in das Verzeichnis /sytem/modules geladen.
- in der Datei /app/AppKernel.php
Dies hinzugefügt:
PHP-Code:
<?php
/**
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
*
* @license LGPL-3.0+
*/
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
use Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle;
class AppKernel extends Kernel
{
/**
* {@inheritdoc}
*/
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Lexik\Bundle\MaintenanceBundle\LexikMaintenanceBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Contao\CoreBundle\ContaoCoreBundle(),
new Contao\CalendarBundle\ContaoCalendarBundle(),
new Contao\CommentsBundle\ContaoCommentsBundle(),
new Contao\FaqBundle\ContaoFaqBundle(),
new Contao\ListingBundle\ContaoListingBundle(),
new Contao\NewsBundle\ContaoNewsBundle(),
new Contao\NewsletterBundle\ContaoNewsletterBundle(),
new ContaoModuleBundle('rocksolid-slider', $this->getRootDir()),
];
if (in_array($this->getEnvironment(), ['dev', 'test'])) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Contao\InstallationBundle\ContaoInstallationBundle();
}
return $bundles;
}
/**
* {@inheritdoc}
*/
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
}
}
- die eingefügt ...
use Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBu ndle;
new ContaoModuleBundle('rocksolid-slider', $this->getRootDir()),
- Dann Symlinks gereinigt und alles andern im Backend.
- Installtool laufen lassen.
Fertig..
Lesezeichen