显示图像

时间:2012-06-07 10:51:37

标签: kohana-3

我正试图在kohana视图中显示图像 但它没有显示任何内容。

我的控制器就像这样

 $view = View::factory('pages/imgDis')
                ->bind('ipath', $path);
     //here $path is absolute path of the image 
     $path = "E:\Ratna\Images\flower.jpg";
   $this->response->body($view);

我的观点是:

<html><body>
       <?php echo HTML::image($ipath, array('alt' => 'AltText')); ?>
    </body></html>

0 个答案:

没有答案