我的index.phtml文件代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<table width="729" height="449" border="0">
<tr>
<th height="66" colspan="2" scope="col">TOP</th>
</tr>
<tr>
<td width="107" height="375" valign="top"><p><a href="<?php echo $this->baseUrl;?>/<?php echo $this->right?>" target="in">right1</a></p>
<p><a href="<?php echo $this->baseUrl;?>/<?php echo $this->right2?>" target="in">right2</a></p>
<p><a href="<?php echo $this->baseUrl;?>/<?php echo $this->right3?>" target="in">right3</a></p></td>
<td width="606" height="375" valign="top"><iframe src="<?php echo $this->baseUrl;?>/<?php echo $this->right?>" width="100%" height="100%" name="in" frameborder="0" scrolling="no"></iframe> </td>
</tr>
</table>
</body>
</html>
让我们看看public function indexAction()是什么样子
public function indexAction()
{
$this->view->right='user/guestbook/show';
$this->view->right2='user/guestbook/modify';
$this->view->right3='user/guestbook/sign';
$this->view->title='浏览内容';
}
效果图:
点击左右的链接,右边就会出现对应的页面。