QuickForm: Custom rule in class

From: Date: Sun, 13 Apr 2008 17:07:38 +0000
Subject: QuickForm: Custom rule in class
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28793@lists.php.net to get a copy of this message
Hi, I'm creating a custom rule in QuickForm inside of a class I tried doing the following class SomeClass { function myRule( $name, $value, $options ) { } function myForm() { $this->registerRule( 'checkValue', 'callback', array( &$this, 'myRule' ) ); } } But I'm getting the following error: Fatal error: Function name must be a string in C:\wamp\php\PEAR\HTML\QuickForm\Rule\Callback.php on line 79 Any help would be appreciated. Thanks, Mark

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