Hi
i am new to yii framework i am working on user upload and view just its own images not view all images this work how is it possible or not like in Facebook user can upload and view its own profile images…
kindly reply …
thanks
Hi
i am new to yii framework i am working on user upload and view just its own images not view all images this work how is it possible or not like in Facebook user can upload and view its own profile images…
kindly reply …
thanks
add extra column (user_id) where you store image information and image name,
by this you can get all images of particular user.
Thanks dear For reply
but How Can I Store the User ID with image
Again Thanks For Reply
Can U upload All Procedure I have alot of confusions to do that i have added a column in image table name of column is user_id which belongs to the tbl_user but the result is same.
How Is it Possible
kindly Reply …
thanks
All files are public on the internet; there is no intrinsical way to register ownership of an image.
So you need to create a work-around. You need to do something like:
<img src="script.php">
Here, script.php would first check the ownership of the image-file. If ownership is confirmed, it would then serve the image (by echo $image).
I am not aware of any Yii extension that does this off-the-shelve (but I could be mistaken). It so happens that I need to program this myself in the near future…