ZF2-556: Undefined methods post() and query() in Zend\Form docs
Description
The documentation of Zend\Form refers to non-existing methods post() and query():
// 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():
// 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!