just found this snippet: http://nuts-and-bolts-of-cakephp.com/2010/10/31/catch-database-errors-before-its-too-late/
On 4 Nov., 10:19, Joshua Muheim <[email protected]> wrote: > I just think it's not the same thing so it should be kept separated. > You never know when something like that can confuse you at a later > time... > > > > > > > > On Thu, Nov 4, 2010 at 10:15 AM, AD7six <[email protected]> wrote: > > > On Nov 4, 9:14 am, Joshua Muheim <[email protected]> wrote: > >> >> On the plus side, at least you used validation errors which is > >> >> contextually more relevant than creating a new variable for storing > >> >> your delete-only errors IMO. > > >> > Agreed. Although I don't like the approach, using $validationErrors > >> > was a nice touch. > > >> So you guys think I'd better us the $validationErrors variable instead > >> of a new $deletionErrors variable? Is validation of creating a record > >> and validation of deleting a record "the same thing"? > > > It's a minor point but what benefit does creating a new "your action > > didn't work because of this" variable? > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > athttp://groups.google.com/group/cake-php?hl=en 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
