> Ok. I guess I am looking for Optimistic Locking, > > has this been implemented on CakePHP? Anyone?
I'd add a field in your article table called editor_id and fill with the user id when you begin to edit. then remove the id when you save. obviously this will cause all sorts of locking hell if your user fails to save the article which is going to bite you on whatever way you do it. mikek > > Thanks > > On Mar 14, 2:50 pm, Sarpidon <[email protected]> wrote: >> Hi, I tried searching for it but I cannot find anything useful. I am >> trying to lock a page that is being edited by another user. In our >> site there could be many admins editing the frontpage (choosing main >> articles and so on), I want to be able to restrict the page to be >> edited by a single user every time (and display a message to users >> that are trying to edit the particular page . e.g. - This page is >> being edited by user XXXX please try again later). >> >> Is there a preferable approach to something like this? >> >> I guess I could store a cookie when the page is "open" and "closed" >> but I am not sure how many things I have to take into consideration. >> >> Any help will be appreciated. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
