Feature #5995
Implicitly call __toString method if action result is an object
| Status: | Resolved | Start date: | 2010-01-13 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assignee: | Robert Lemke | % Done: | 100% |
|
| Category: | MVC | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 7 | |||
| PHP Version: | Complexity: | |||
| Has patch: | ||||
| Votes: | 0 |
Description
If an action method returns an object, the ActionController should check if a __toString method exists and if so call it and append its result to the response content.
Associated revisions
[+FEATURE] FLOW3 (MVC): If the result of an action method is an object providing a __toString() method, this method will be called by the ActionController and its result will be added to the response content. Resolves #5995
[+FEATURE] FLOW3 (MVC): The routes property @controller now allows the use of namespace separators for referring to classes in file / class structure below "Controllers". Resolves #5998
[~TASK] FLOW3 (Documentation): Fixed a few typos in the AOP documentation.
History
Updated by Robert Lemke over 3 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3606.