 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
kabatak Smarty Rookie

Joined: 06 Mar 2004 Posts: 33
|
Posted: Sun Feb 20, 2005 11:05 am Post subject: SmartyValidate error on PHP 4 |
|
|
Hi, I am using SmartyValidate on PHP 5 and everything is working great however when I transfered to PHP 4. I get the error:
| Quote: |
Notice: SmartyValidate: [is_valid] criteria function 'IsExist' was not found. in c:\program files\apache group\apache\htdocs\myscript\smarty\libs\SmartyValidate.class.php on line 394
|
I have this error because I am using my own custom criteria (in the example above "IsExist") using register_criteria.
I think using custom criteria doesn't work in PHP 4. Can anybody help? |
|
| Back to top |
|
kabatak Smarty Rookie

Joined: 06 Mar 2004 Posts: 33
|
Posted: Sun Feb 20, 2005 11:46 am Post subject: |
|
|
Nevermind, I figured it was PHP's fault because I am using get_class_methods() and loop out register_criteria. It was a matter of case sensitivity.
| Quote: | get_class_methods()
Warning
As of PHP 5, this function returns the name of the methods as they were declared (case-sensitive). In PHP 4 they were lowercased.
|
|
|
| Back to top |
|
kabatak Smarty Rookie

Joined: 06 Mar 2004 Posts: 33
|
Posted: Sun Feb 20, 2005 11:50 am Post subject: |
|
|
now my question: Is function calls within SmartyValidate case sensitive?
Or maybe, is it possible for SmartyValidate to recognize a criteria in a case-insensitive manner? |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|