Yii Framework Forum: Image Displayer - Url Rewrite Problem Fixed - Yii Framework Forum

Jump to content

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

Image Displayer - Url Rewrite Problem Fixed Rate Topic: -----

#1 User is offline   maztch 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 11-February 13

Posted 11 February 2013 - 01:50 PM

Hi, i have changed line 141 from Image Displayer extension,

In order to fix src path (in html) for those who hide index.php (and browser is not able to interpret the path).


$this->src = Yii::app()->baseUrl.'/'.$this->baseDir . '/'. $imageFolder . '/' . $this->image;



Hope useful for someone :P
0

#2 User is offline   maztch 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 11-February 13

Posted 11 February 2013 - 02:34 PM

Also added check modified date to allow image updates:

line 168

if (!file_exists($this->imageFile) or filemtime($this->imageFile)<filemtime($this->originalFile)) {

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