Found sections ‚common‘, ‚production‘, ‚development‘ in configuration, but corresponding extensions are missin
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- duskohu
- Člen | 778
Caute neviete niekto preco mi robi toto? nacitavam niekolko config suborov,
predpokladam ze to ma nieco docinenia so sekciami, ale neviem co.
bootstrap
$configurator ->addConfig(__DIR__ . '/CoreModule/config/config.neon');
$configurator ->addConfig(__DIR__ . '/CmsModule/config/config.neon');
neon1
common:
parameters:
database:
driver: mysql
host: ...
dbname: ''
user: ''
password: ''
theme:
templatesDir: 'templates'
mediaDir: 'media'
themeName: 'baseTheme'
layoutName: 'two.column'
php:
date.timezone: Europe/Prague
#zlib.output_compression: yes
nette:
session:
autoStart: smart
expiration: +30 days
savePath: %tempDir%/sessions
application:
errorPresenter: Error
database:
default:
dsn: '%database.driver%:host=%database.host%;dbname=%database.dbname%'
user: %database.user%
password: %database.password%
services:
users: Users
factories:
production < common:
development < common:
neon2
common:
parameters:
layoutName: 'one.column'
services:
test: Test
factories:
production < common:
development < common:
- David Matějka
- Moderator | 6445
souvisi s tim tenhle
commit
muzes to zapsat takhle:
use Nette\Config\Configurator;
$configurator->addConfig(__DIR__ . '/CoreModule/config/config.neon', Configurator::AUTO);
$configurator->addConfig(__DIR__ . '/CmsModule/config/config.neon', Configurator::AUTO);