Welcome Guest, Not a member yet? Register   Sign In
Problems with the new Form Validation library
#11

[eluser]beemr[/eluser]
When you say you had to specifically use MY_Form_validation, does that mean that you are actually calling $this->my_form_validation->some_method()?

Extensions should automatically be calling their parents in their constructor so you should only ever have to call $this->form_validation. The prefix 'MY_' is a config setting that will automatically load class extensions with that prefix. Perhaps your config's prefix is set to a custom prefix?

If you are calling your extension directly and it isn't correctly inheriting from its parent, then you are only able to access methods that you have explicitely written into MY_Form_Validation.

Also, you might check out MY_Form_validation from the wiki. It will allow you to keep your callback rules in your model. It has worked well for me.

Anyhow, just checking to see if the plug is in the wall socket, y'know?


Messages In This Thread
Problems with the new Form Validation library - by El Forum - 10-19-2008, 09:43 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 01:54 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 03:00 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 05:22 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 05:44 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 06:04 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 06:23 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 06:28 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 06:30 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 06:45 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 06:58 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 07:07 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 07:21 AM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 01:40 PM
Problems with the new Form Validation library - by El Forum - 10-20-2008, 02:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB