나는 framewrok를 새로 만들었습니다. 색인보기에서 이미지를 표시하려고합니다. 그것은 단지 대체 텍스트가 아닌 이미지를 표시인덱스보기에서 zend framewrok에 이미지를 표시하는 방법은 무엇입니까?
<?php
echo "Student List";
//$this->headTitle($this->title);
?>
<p><a href="<?php echo $this->url(array('controller'=>'index',
'action'=>'add'));?>">Add new student</a></p>
<table>
<tr>
<th>Name</th>
<th>Email</th>
<th>Photo</th>
<th> </th>
</tr>
<?php foreach($this->students as $student) : ?>
<tr>
<td><?php echo $this->escape($student->name);?></td>
<td><?php echo $this->escape($student->email);?></td>
<td><img src='opt/lampp/htdocs/framework/zf-tutorial/project.png' alt='sdfsd'></td>
<td>
<a href="<?php echo $this->url(array('controller'=>'index',
'action'=>'edit', 'id'=>$student->id));?>">Edit</a>
<a href="<?php echo $this->url(array('controller'=>'index',
'action'=>'delete', 'id'=>$student->id));?>">Delete</a>
</td>
</tr>
<?php endforeach; ?>
</table>
: 다음은 내 코드입니다. 도와주세요.
$ fileName = $ upload-> getFileName ('photo'); $ fileName = basename ($ fileName); 파일 이름을 얻으려면 파일 이름을 받기 전에 이름을 바꿀 수있는 방법을 말해 줄 수 있습니까? – user1939096
젠드 필터 이름 바꾸기 http://framework.zend.com/manual/1.12/en/zend.file.transfer.filters.html#zend.file.transfer.filters.rename – opHASnoNAME