Issues

ZF2-556: Undefined methods post() and query() in Zend\Form docs

Issue Type: Docs: Problem Created: 2012-09-13T23:05:43.000+0000 Last Updated: 2012-09-14T14:07:03.000+0000 Status: Resolved Fix version(s): Reporter: Martin_P (martin_p) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Form

  • documentation

Related issues: Attachments:

Description

The documentation of Zend\Form refers to non-existing methods post() and query():

<pre class="highlight">// Get the data. In an MVC application, you might try:
$data = $request->post();  // for POST data
$data = $request->query(); // for GET (or query string) data

The correct methods are getPost() and getQuery():

<pre class="highlight">// Get the data. In an MVC application, you might try:
$data = $request->getPost();  // for POST data
$data = $request->getQuery(); // for GET (or query string) data

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2012-09-14T14:06:53.000+0000

Fixed on the master branch of zf2-documentation. Thanks!

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts