PHP code example of joeherold / readspeaker
1. Go to this page and download the library: Download joeherold/readspeaker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joeherold / readspeaker example snippets
// FILE: TL_ROOT/app/AppKernel.php
/**
* This file is part of Contao.
*
* Copyright (c) 2005-2016 Leo Feyer
*
* @license LGPL-3.0+
*/
// ADDED CODE
// add this line, to enable loading of Contao 3.X Modules
use Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle;
class AppKernel extends Kernel
{
/**
* {@inheritdoc}
*/
public function registerBundles()
{
$bundles = [
...
// ADDED CODE
// add this line to register the module in Contao 4
new ContaoModuleBundle('readspeaker', $this->getRootDir()),
];
...
}
...
}