07-04-2009, 06:36 AM
[eluser]cellulit[/eluser]
hi guys;
i'm just wondering if there's any smart way to encrypt or decrypt results sets provided by db->get or get_where functions. i try to stick to the model and do this basic data manipulation there (instead of decrypting data in view for example).
so far, i've tried a couple of things including:
... but none of my attempts are successful.
any hints?
thanks in advance!
a
hi guys;
i'm just wondering if there's any smart way to encrypt or decrypt results sets provided by db->get or get_where functions. i try to stick to the model and do this basic data manipulation there (instead of decrypting data in view for example).
so far, i've tried a couple of things including:
Code:
array_walk($results,'$this->encrypt->decode');
any hints?
thanks in advance!
a