EllisLab text mark
Advanced Search
     
Form validation issues
Posted: 02 July 2012 10:16 AM   [ Ignore ]
Joined: 2011-07-01
9 posts

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

 
Posted: 03 July 2012 02:26 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Joe,

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

Are you building an add-on?

Cheers,

 Signature 

How may I help you?

 
Posted: 03 July 2012 03:32 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2011-07-01
9 posts

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

 
Posted: 05 July 2012 02:44 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey Joe,

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

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade