function for correct URL split into pieces.
On Jul 30, 7:19 pm, euromark <dereurom...@googlemail.com> wrote:
> 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 thatwww.urland 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 <prabha.ridd...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have to validate website whether a website is unique or not.http://www.example.comisunique buthttp://www.example.com/isnot uniquehttp://example.comisnot unique andhttp://example.com/isnot unique
>
> > How to do such a validation?
> > Users are allowedhttp://www.example.com/signup.phporsomething 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment