Hi
If you aren't planning on making any of these urls humanly parseable / 
bookmarkable, how about just having an path such as 

> /edit/


I've been working on a ordering system which when i first select the record to 
edit i set the id into a session and then just use that on my edit pages.

if you are looking for something bookmarkable  but just don't want numerical 
ids, perhaps look at implementing UUID

According to the book:

"Rather than using an auto-increment key as the primary key, you may also use 
char(36). CakePHP will then use a unique 36 character UUID (String::uuid) 
whenever you save a new record using the Model::save method."

http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html

Regards
Mike


On 22 Sep 2014, at 15:48, romel javier gomez herrera 
<[email protected]> wrote:

> I use this type URL to edit records:  
> 
> /edit/1
> 
> where 1 is the ID of the record. 
> 
> I want to know how implement this type URL:
> 
> /edit/7aSes77Gb642r8dx-patPQ08xC6VdZsydO31zA3mVLQ
> 
> Best wishes.
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.

....................................
Mike Karthäuser
Director, Brightstorm Ltd.

1, Brewery Court
North Street
Bristol
BS3 1JS

[email protected]
www.brightstorm.co.uk
+44(0) 7939252144
....................................

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to