I use a custom validation rule which completes the schema and maks the
url always the same (adding trailing slash, http:// etc).
you could also modify the url in beforeValidate().
this way you would get the result you are looking for.

BUT you should know that www.url and url do not necessarily need to be
the same and have the same content.
if you automatically add www. if missing in some rare cases this could
result in a inappropriate validation.


On 30 Jul., 05:00, Prabha vathi <[email protected]> wrote:
> Hi,
>
> I have to validate website whether a website is unique or 
> not.http://www.example.comis unique buthttp://www.example.com/is not 
> uniquehttp://example.comis not unique andhttp://example.com/is not unique
>
> How to do such a validation?
> Users are allowedhttp://www.example.com/signup.phpor something like this.
> But main domain should be unique.
>
> I did something and it was working in my old site. But i don't know what to
> do it in cakephp in model.
> Please help
>
> Thanks

-- 
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

Reply via email to