No it does not, if you look at the html helper in the cake library it
does no validation for this. Primarily it assumes you already have
done the proper checking when saving the url into the database and
confirmed that it is an image
The proper location for this would be to write your own validation
rule in your model, if you don't save it to the database then you can
validate the data from the controller and still use the validation
rules.
Check the book for more validation rules and code examples

On Apr 16, 8:06 am, goluhaque <[email protected]> wrote:
> No, the image is not to be uploaded. Rather, it is to be linked. I mean, say
> the image is hosted at some other website at 
> say,http://url.com/image/cheese.jpg
> . This link will be submitted but the user and will be stored in the db. On
> the profile page(assume it's a sig or an avatar), it is displayed by using
> $this->html->image()  . My question is that whehter the function only
> displays images(meaning to say that it won't allow the js script to be
> executed, if such a link has been submitted) or will it execute the js
> script?

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