I have a component that returns an unique 14 digit timestamp.

I need to use it on the add method of my UserController
in order to identify each record as unique, I don't want
to use the autoincrement property of mySQL table.

UserController:
$this->set('uniqueID', $this->Time->uniqueTimeStamp());

But I need save this value with each record.

add.thtml:
<?php echo $html->input('User/username', array('size' => '20',
'maxlength'=>'20'))?>

Where "User" is my model and "username" the datafield name.

How can I save the value of the unique timestamp in every new record?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to