Hi there,

going on with my project I am looking for a way to generate unique
ident-codes for some entries.
I.e. if a customer adds a request to the system I have the internal
index model_id for internal use.
To have a better look and feel for customers and staff I would like to
have something more human like a combination of numbers and letters
(not only the id or a timestamp).

Any idea how to do this?
Sure I might use php and some random functions to generate letters and
numbers as I need.
My problems is to have em unique - can I use the unique function for
validating the field in databese or the model vaidation or will I have
to program a lookup for the database to ensure a generated code is not
already in use.

Thanks at all.

Michael

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to