Missing parameter ‚appDir‘
- crookslovacko
- Člen | 75
AHojte podle navodu jsem instaloval Kdyby translator ale neustale mi hazi
Missing parameter ‚appDir‘
Neco mi chybi v config?
parameters:
application:
errorPresenter: Error
mapping:
*: *Module\*Presenter
session:
expiration: 14 days
di:
export:
parameters: no
tags: no
extensions:
translation: Kdyby\Translation\DI\TranslationExtension
translation:
default: cs
fallback: [cs_CZ, cs]
whitelist: ['cs']
dirs:
- %appDir%/lang
services:
router: App\Router\RouterFactory::createRouter
<?php
declare(strict_types=1);
namespace App\Router;
use Nette;
use Nette\Application\Routers\RouteList;
final class RouterFactory
{
use Nette\StaticClass;
public static function createRouter(): RouteList
{
$router = new RouteList();
$router[] = new Route('admin/[<locale=cs cs|en>/]/<presenter>/<action>', 'Sign:default');
$admin = new RouteList('Admin');
$admin->addRoute('[<locale=cs cs|en>/]admin/<presenter>/<action>[/<id>]', 'Start:default');
$router[] = $admin;
$front = new RouteList('Front');
$front->addRoute('<presenter>/<action>[/<id>]', 'Homepage:default');
$router[] = $front;
return $router;
}
}
- Ondřej Kubíček
- Člen | 494
kdyby translator je depracated. Použij contributte translator https://componette.org/…translation/