Yii Framework Forum: IMAGE - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

IMAGE set the image for different users

#1 User is offline   Karthik12 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 15-March 11

Posted 31 May 2011 - 06:04 AM

Hi ,

I want set the image for my project for different users login,how to set image for this,am taking image field in database .
0

#2 User is offline   Yii Developer India 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 18-December 11
  • Location:Mumbai, India

Posted 28 March 2012 - 05:21 AM

Try this :


echo CHtml::image(Yii::app()->request->baseUrl.$model->image,$model->image,array("title" => $model->image));
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users