图片地址跳转

//imgslist.php
《img src="<?=$reg->img['path']?>" /》
public function actionImgsList(){
    $reg->img['path'] = '/index.php?r=img/getImg&id='.$pid;
    $this->render('imgslist');
}
public function actionGetImg(){
      $path = somemethod($_get['id']);
      header("Location:".$path);
}

 

posted @ 2012-12-21 17:47  赤脚大仙~  阅读(272)  评论(0编辑  收藏  举报
View Code