Aviat\Ion\ViewInterface
View Interface abstracting a Response
Synopsis
interface ViewInterface
{
- // methods
- public string __toString()
- public ViewInterface setOutput()
- public ViewInterface appendOutput()
- public ViewInterface addHeader()
- public string getOutput()
- public void send()
Methods
public
- __toString() — Return rendered output as string. Renders the view, and any attempts to call again will result in a DoubleRenderException
- addHeader() — Add an http header
- appendOutput() — Append additional output.
- getOutput() — Get the current output as a string. Does not render view or send headers.
- send() — Send output to client. As it renders the view, any attempt to call again will result in a DoubleRenderException.
- setOutput() — Set the output string