⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Prepare data before its render



LightBr0
  • profile picture
  • Member

Posted 11 July 2013 - 10:09 AM

I have a table, content some field serialized and json. So I wonder how I can prepare those data before it render view?! :unsure:
Thanks in advance :)


davidoster
  • profile picture
  • Member

Posted 11 July 2013 - 11:08 AM

This is how data looks, http://eletter.gr/samples/gc_ic/index.php/gc_examples/customers_management/ajax_list

for this table http://eletter.gr/samples/gc_ic/index.php/gc_examples/customers_management


LightBr0
  • profile picture
  • Member

Posted 11 July 2013 - 12:09 PM

Sorry, I dont understand what you mean! I mean I have a field with serialized data, how I can unserialize it before its render :D


davidoster
  • profile picture
  • Member

Posted 11 July 2013 - 13:55 PM

Post your code please so we can better understand. Serialization is a common process before storing and on the other hand the unserilization when you want to use these stored data.

You need to tell us the process you have these data serialized. E.g. via http://php.net/manual/en/function.serialize.php

Then most probably you need to make your own database model, I think.