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 issues

Development and Programming

joe.dixon@selectamark.co.uk's avatar
[email protected]
6 posts
13 years ago
joe.dixon@selectamark.co.uk's avatar [email protected]

Hi support,

I have a requirement to use the form_validation library and more specifically the

valid_username[new]

and

valid_email[new]

however, this is not working for me.

The valid_username fails with the following error:

Fatal error: Call to a member function helper() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/invoicee/system/expressionengine/libraries/EE_Form_validation.php on line 116

Line 116 of EE_Form_validation.php is the following:

$this->CI->load->helper('string');

The

valid_email[new]

doesn’t error, but also doesn’t validate the email address against duplicates which doesn’t help a great deal!!

Am I missing something simple?

Thanks in advance, Joe

       
Dan Decker's avatar
Dan Decker
7,338 posts
13 years ago
Dan Decker's avatar Dan Decker

Hi Joe,

Can you give some context to how you are using the form validation library?

Are you building an add-on?

Cheers,

       
joe.dixon@selectamark.co.uk's avatar
[email protected]
6 posts
13 years ago
joe.dixon@selectamark.co.uk's avatar [email protected]

Hi Dan,

Yes, building an module which requires me to register members from within the control panel. I’m trying to use the form validation from within the mcp.my_addon.php file.

Cheers, Joe

       
Shane Eckert's avatar
Shane Eckert
7,174 posts
13 years ago
Shane Eckert's avatar Shane Eckert

Hey Joe,

I am going to move this over to Development and Programming. The community there will help you with your development questions.

Cheers,

       

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.