3
I’m creating a simple CMS in Cakephp to learn how to use the framework. Within my CMS, in the administration part of the site, there is a tab that is called email and in this tab we see all the emails that were registered by the administrator. However, when registering an email it allows us to register the same email over and over again. How do I eliminate this failure?
I don’t know Cake, but the validation rule should be like most FW, look for the attribute
unique
, or do an email check in the controller before registering. Here I found some answers that might help: http://stackoverflow.com/questions/2461267/cakephp-isunique-for-2-fields– Papa Charlie