problem v configu s addConfig
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- vosy
- Člen | 532
ahoj v config.neon mam
#
# SECURITY WARNING: it is CRITICAL that this file & directory are NOT accessible directly via a web browser!
#
# If you don't protect this directory from direct web access, anybody will be able to see your passwords.
# https://nette.org/en/security-warning
#
common:
parameters:
php:
date.timezone: Europe/Prague
nette:
application:
errorPresenter: Error
mapping:
*: App\*Module\Presenters\*Presenter
session:
expiration: 14 days
services:
- Vosy\MyDb
- App\UrlTransform
- App\RouterFactory
router: @App\RouterFactory::createRouter
production < common:
nette:
database:
dsn: 'mysql:host=127.0.0.1;dbname=fds'
user: root
password: dobradb31
development < common:
nette:
database:
dsn: 'mysql:host=127.0.0.1;dbname=autacina'
user: root
password: 2490
a pri zpusteni webu se mi zobrazi hlaska:
Config file ‚......../app/config/config.neon‘ has sections, call addConfig()
with second parameter Configurator::AUTO.
Editoval vosy (5. 9. 2014 12:44)
- David Matějka
- Moderator | 6445
- formatuj kod
- vzdyt ti to tam pise presne co mas udelat
Config file ‚......../app/config/config.neon‘ has sections, call addConfig() with second parameter Configurator::AUTO.
edit:
3. je lepsi pouzivat config.local.neon, viz sandbox
Editoval matej21 (5. 9. 2014 12:32)