标题: zend 新手求助
tingfeng0311
新手上路
Rank: 1



UID 15153
精华 0
积分 0
帖子 1
翻译 0
原创 0
阅读权限 10
注册 2010-1-29
状态 离线
发表于 2010-2-2 22:41  资料  短消息  加为好友 
zend 新手求助

按照手册里操作,
IndexController.php文件里
<?php
class IndexController extends Zend_Controller_Action
{
function indexAction()
{
        $this->view->title="this is Utopia";
        $this->view->content="tell me why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
        $this->render();
}
function editAction()
{
        $this->view->title="this is Utopia";
        $this->view->content="tell me why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!";
}
}

Phtml文件放在
views>>scripts>>index下有两个文件
index.phtml

<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="HPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title><?php echo $this->escape($this->title);?></title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
<?php echo $this->escape($this->title);
    echo $this->escape($this->content);

?>
</body>
</html>


edit.phtml
相同的HTML代码

为什么我按手册的地址
http://127.0.0.1/zendframework/public/
能访问 indexAction()的内容

http://127.0.0.1/zendframework/public/index/edit
却出现
Not Found

The requested URL /zendframework/public/index/edit was not found on this server.
哪位高手可以解释下,   谢谢

顶部
kazaff
新手上路
Rank: 1



UID 2503
精华 0
积分 0
帖子 3
翻译 0
原创 0
阅读权限 10
注册 2008-11-11
来自 河南安阳
状态 离线
发表于 2010-2-4 11:54  资料  主页 短消息  加为好友  QQ
看看你的服务器环境是否支持htaccess

顶部
 


PHPEye开源社区


当前时区 GMT+8, 现在时间是 2010-3-14 11:48

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.031744 second(s), 8 queries , Gzip enabled

清除 Cookies - 联系我们 - PHPEye开源社区 - Archiver