Jump to content

Serializing in config form?


Guest

Recommended Posts

Hi, I have a module with its config form in a .tpl file (so, no Helper class). I need to serialize values and the AJAX picks them up correctly (the Save button is bound to an AJAX request), but then they are not saved in the DB at all.

These are the tags as they appear in the .tpl:

<textarea class="form-control" name="product_analysis[]">My first text</textarea>

<textarea class="form-control" name="product_analysis[]">My second text</textarea>

The product_analysis field is currently set like this:

array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString')

Can you help me out please?

Thank you!

Edited by Guest (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...