Permalink
Browse files

Configuring: added routing example [#677] (#724)

  • Loading branch information...
f3l1x authored and dg committed Sep 30, 2018
1 parent a9a5cc1 commit a85fe000c9634ceaa2cc3a9b735536dae414541b
Showing with 44 additions and 0 deletions.
  1. +22 −0 cs/configuring.texy
  2. +22 −0 en/configuring.texy
@@ -265,6 +265,28 @@ Standardní mailer je SendmailMailer, uvedením `smtp` aktivujeme SmtpMailer.
\--


Routování
=========

Routování obvykle definujeme v RouterFactory, takovou třídu [najdeme v sandboxu](https://github.com/nette/sandbox/blob/v2.4/app/router/RouterFactory.php#L17-L22).
Můžeme je však definovat i v konfiguračním souboru:

/--neon
routing:
routes:
'detail/<id>': Admin:Home:default
'<presenter>/<action>': Front:Home:default
\--

Další nastavení:

/--neon
routing:
debugger: false # vypne panel v Debugger baru
cache: true # serializuje router do DI kontejneru
\--


Session
=======

@@ -260,6 +260,28 @@ Default mailer is `SendmailMailer`. By setting `smtp` you activate `SmtpMailer`.
\--


Routing
=======

Routes are typically defined in RouterFactory, such class [can be found in a sandbox](https://github.com/nette/sandbox/blob/v2.4/app/router/RouterFactory.php#L17-L22).
However, we can also define them in the configuration file:

/--neon
routing:
routes:
'detail/<id>': Admin:Home:default
'<presenter>/<action>': Front:Home:default
\--

Other settings:

/--neon
routing:
debugger: false # turns off the panel in the Debugger bar
cache: true # serializes the router into the DI container
\--


Session
=======

0 comments on commit a85fe00

Please sign in to comment.