Bug #53350
Trying to create a Link in an Template in CLI Context should provide a helpful exception
Status: | Accepted | Start date: | 2013-11-05 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 0% |
|
Category: | MVC - Routing | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | Git master |
Description
If you try to render a FluidTemplate with a link in it through a
CommandController it fails currently with this error:
Uncaught Exception Could not resolve a route and its corresponding URI for the given parameters. This may be due to referring to a not existing package / controller / action while building a link or URI. Refer to log and check the backtrace for more details.
This happens, because the router isn't configured by default in the
cli context and needs to be configured manually.
We should provide a more helpful exception here to tell the dev what
he needs to do
History
#1 Updated by Bastian Waidelich over 1 year ago
- Category set to MVC - Routing
- Status changed from New to Accepted