We can return the contente from the view.
So, in this case, we can write:
public function executeXml(AgaviRequestDataHolder $rd)
{
$xmlDoc = new DomDocument('1.0');
$root = $xmlDoc->createElement('myxml');
$xmlDoc->appendChild($root);
$foo = $xmlDoc->createElement('blah', 'foofoo');
$root->appendChild($foo);
$xmlDoc->formatOutput = true;
// this will be set to response as content in ExecutionFileter.
return $xmlDoc->saveXML();
}
which is better to set expressly or to return?
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users