Nastavení settings v nette
- Michal Vyšinský
- Člen | 608
Ahoj,
nemá to být ‚parameters‘? Bez toho konfigu ti těžko někdo napoví,
o co se pokoušíš?
- Karlos
- Člen | 6
Config vypadá takto:
php:
date.timezone: Europe/Prague
# zlib.output_compression: yes
# — parameters
-----------------------------------------------------------
parameters:
database:
driver: mysql
host:
dbname:
user:
password:
# — nette config
---------------------------------------------------------
nette:
application:
errorPresenter: Error
mapping:
*: App*Module\Presenters*Presenter
database:
dsn: ‚%database.driver%:host=%database.host%;dbname=%database.dbname%‘
user: %database.user%
password: %database.password%
options:
lazy: yes
session:
expiration: 14 days
# — services -------------------------------------------------------------
- services
- App\UserManager
- App\RouterFactory
router: @App\RouterFactory::createRouter
settings: App\Model\Settings
Editoval Karlos (5. 8. 2014 9:42)