We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Form Validation callbacks in a Module.

Development and Programming

vinci's avatar
vinci
85 posts
15 years ago
vinci's avatar vinci

Hello, I was wondering if a solution was found for using form validation callbacks in modules, as discussed in .(JavaScript must be enabled to view this email address).

The issue lies in checking if the callback method exists:

// Call the function that corresponds to the rule
if ($callback === TRUE)
{    
   if ( ! method_exists($this->CI, $rule))

Where is this actually checking? the CI super object? if so then where should I put the callback?

I think this is a biggie. I dont want to hack EE core files, is there perhaps a way I could extend the EE_form_validation class (which is already extending the CI_form_validation class) in a module library?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.