Bug #7674 [NEW]: Error In Sample Code/Example
| From: | zee4speed at hotmail dot com | Date: | Fri, 19 May 2006 19:34:41 +0000 |
| Subject: | Bug #7674 [NEW]: Error In Sample Code/Example | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7931@lists.php.net to get a copy of this message | ||
From: zee4speed at hotmail dot com
Operating system: xp
Package version:
PHP version: 5_2 CVS-2006-05-19
Package: Documentation
Bug Type: Bug
Bug description: Error In Sample Code/Example
Description:
------------
In the above example 41-1 there are a few problems to prevent user for
completely using this example.
Test script:
---------------
1. Line 3: $form->compile($this->masterTemplate);
// change this line to ...compile("FileName.Ext");
2. Line 33,34: $elements['test_checkbox[]'] = new HTML...
// change ...text_checkbox[] to ...text_checkbox_array[]
// this change is for line 33 and 34.
3. Line 43: $form->output(new StdClass, $elements);
// should be outputObject(new StdClass, $elements);
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=7674&edit=1
--