Re: Small error in HTML_QuickForm_Controller FAQ

From: Date: Thu, 10 Jun 2004 13:52:16 +0000
Subject: Re: Small error in HTML_QuickForm_Controller FAQ
References: 1  Groups: php.pear.doc php.pear.general 
Request: Send a blank email to pear-general+get-13081@lists.php.net to get a copy of this message
Hi, Reynald Borer wrote:
I've found a small error in the QuickForm_Controller FAQ. It's inside the question "How to pass additionnal data between pages of the form ?" The line about using the container method says to use: "$data =& $page->controller->container();" but it doesn't work, the correct way is to use "$data =& $page->container();"
There is no error. One *usually* uses name $page for an instance of H_Q_Page, not H_Q_Controller. In this case the code works.

« previous php.pear.general (#13081) next »