Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlView should also have options just as JsonView has. #6452

Merged
merged 1 commit into from May 4, 2015

Conversation

dereuromark
Copy link
Member

These were missing in the XmlView class so far, but needed, if output should be attributes instead of default tags.

Also fixed documentation (plural "attributes).

@dereuromark dereuromark added this to the 3.0.3 milestone Apr 30, 2015
@@ -131,6 +131,10 @@ public function render($view = null, $layout = null)
/**
* Serialize view vars.
*
* ### Special parameters
* `_xmlOptions` You can set an array of custom options for json_encode() this way, e.g.
* 'format' as 'attribute' instead of 'tags'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mention json_encode in the xml docs.

@markstory markstory self-assigned this May 1, 2015
@dereuromark dereuromark mentioned this pull request May 2, 2015
@lorenzo lorenzo modified the milestones: 3.0.3, 3.0.4 May 3, 2015
@dereuromark
Copy link
Member Author

Since the backport was merged, this should probably too (could have been in 3.0.3 btw).

lorenzo added a commit that referenced this pull request May 4, 2015
XmlView should also have options just as JsonView has.
@lorenzo lorenzo merged commit 080b822 into master May 4, 2015
@lorenzo lorenzo deleted the master-xml-options branch May 4, 2015 17:04
@lorenzo
Copy link
Member

lorenzo commented May 4, 2015

@dereuromark I prefer not to merge new features a few hours before a release as not at all of people have tested it live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants