Can't get started with EventCalendar

Notice: This thread is very old.
kevchal
Member | 10
+
0
-

hi every one
I am a beginner on nette framework and I am trying to use EventCalendar addon (EventCalendar).

I have folowed the steps of the Quick Start so in the command line input in my root directory, I typed :
Composer require jaroslav-kubicek/event-calendar
In my presenter, I have :

<?php
namespace App\Presenters;
use Nette,
	App\Model,
	Tracy\Debugger,
	EventCalendar\Simple\simpleCalendar;
	class CalendarPresenter extends BasePresenter{
	public function createComponentCalendar() {
	$cal = new EventCalendar();
	$cal ->setEvents( new EventModel());
	return $cal ;
	}
}
?>

in my template file, I have :

<h1 n:block=“title”>test</h1>
{block content}
{control Calendar}

I also changed my bootstrap.php in order to auto load EventCalendar Classes

<?php
require __DIR__ . '/../vendor/autoload.php';
$configurator = new Nette\Configurator;
//$configurator->setDebugMode('23.75.345.200'); // enable for your remote IP
$configurator->enableDebugger(__DIR__ . '/../log');
$configurator->setTempDirectory(__DIR__ . '/../temp');
$configurator->createRobotLoader()
	->addDirectory(__DIR__)
	->addDirectory(__DIR__ .'/../vendor/jaroslav-kubicek/event-calendar/EventCalendar')
	->register();
$configurator->addConfig(__DIR__ . '/config/config.neon');
$configurator->addConfig(__DIR__ . '/config/config.local.neon');
$configurator->addConfig(__DIR__ .'/../vendor/jaroslav-kubicek/event-calendar/EventCalendar/Simple/simpleCalData.neon');
$container = $configurator->createContainer();
return $container;
?>

But, I have the error :

Nette\InvalidStateException
Found sections ‘en’, ‘cz’, ‘sk’, ‘de’ in configuration, but corresponding extensions are missing.

If someone could give me a hand with this issue, I have been stuck on this for weeks.

Thanking you in advance