Feature #5995

Implicitly call __toString method if action result is an object

Added by Robert Lemke over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Could have
Assignee:
Category:
MVC
Start date:
2010-01-13
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

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

Revision bc5c763a (diff)
Added by Robert Lemke over 9 years ago

[+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

#1 Updated by Robert Lemke over 9 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3606.

Also available in: Atom PDF