Yii Framework Forum: Using Images On Database Become Bannerslider On Yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Using Images On Database Become Bannerslider On Yii

#1 User is offline   TanPhat_Le 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 03-July 14

Posted 03 July 2014 - 04:18 AM

I had uploaded images on database and now i want to use those images become the banner slider. How to do that with Yii framework? please help me.

This is the original code:
$image_url = Yii::app()->baseUrl . '../images/wowslider/'    
$image_arr[] = array(
   'title' => 'Bream bay', 
   'desc' => 'Bream Bay From The Brynderwyn Ranges', 
   'image' =>$image_url.'bream_bay.jpg');

0

#2 User is offline   Rajith R 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 920
  • Joined: 20-April 11
  • Location:India

Posted 03 July 2014 - 07:25 AM

View PostTanPhat_Le, on 03 July 2014 - 04:18 AM, said:

I had uploaded images on database and now i want to use those images become the banner slider. How to do that with Yii framework? please help me.

This is the original code:
$image_url = Yii::app()->baseUrl . '../images/wowslider/'    
$image_arr[] = array(
   'title' => 'Bream bay', 
   'desc' => 'Bream Bay From The Brynderwyn Ranges', 
   'image' =>$image_url.'bream_bay.jpg');



Uploaded to database as BLOB ?

or

to folder?
Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
0

#3 User is offline   TanPhat_Le 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 03-July 14

Posted 03 July 2014 - 09:28 PM

View PostRajith R, on 03 July 2014 - 07:25 AM, said:

Uploaded to database as BLOB ?

or

to folder?

Thanks for reply, I had uploaded to folder in webroot
0

#4 User is offline   Rajith R 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 920
  • Joined: 20-April 11
  • Location:India

Posted 05 July 2014 - 04:55 AM

View PostTanPhat_Le, on 03 July 2014 - 09:28 PM, said:

Thanks for reply, I had uploaded to folder in webroot

Okay. thats better approach.
Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
0

#5 User is offline   kelsch 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 22-May 14

Posted 26 March 2015 - 01:38 AM

Quite better approach...it has helped me too...
Senior System Engineer

SmartIO || Transfer Content
content transfer app
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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