I have created a library called Fields where I will create some custom fields.
I have a method new() that is checking for the post information and validating what is necessary.
The problem is, how will I send the post information to that library?
Or, should I make the validation on my controller and send the information as a parameter to the method new()?
Thanks in advance for any help.
will give you an array of your post data you can send as an argument to your library.