//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); }