返回列表 回复 发帖
那就奇怪了哦,我试了一下没问题的
我按照上面的例子提交后,会出现这样的提示:
Forbidden
You don't have permission to access /study/test3/Guestbook/< on this server.

Apache/1.3.33 Server at 127.0.0.1 Port 80
APM apache要不要重新设置的?

挑个小错误

/Guestbook/View/index.php中对文本内容小于10个字的判断未起作用。
查了下,是逻辑关系错了。
    if (o.content.value == '' && o.content.value.length<10){
应改为
    if (o.content.value == '' || o.content.value.length<10){
原帖由 francup 于 2007-2-7 15:18 发表
我按照上面的例子提交后,会出现这样的提示:
Forbidden
You don't have permission to access /study/test3/Guestbook/< on this server.

Apache/1.3.33 Server at 127.0.0.1 Port 80
/study/test3/Guestbook/index.php 呢?
http://localhost/study/test3/Guestbook/<?%20echo%20$this->_url('create');%20?>
还是一样,会链接到上面的地址
哦,我终于明白了!

他这个示例程序用的 <?  ?> 这样的标记。PHP 默认配置(包括 APM Express)php.ini 中的 short_open_tag 是 off,所以不能用 <? ?>。

你把这个设置改为 on 就行了。但还是推荐用 <?php ?>
原帖由 dualface 于 2007-2-8 00:48 发表
哦,我终于明白了!

他这个示例程序用的 <?  ?> 这样的标记。PHP 默认配置(包括 APM Express)php.ini 中的 short_open_tag 是 off,所以不能用 <? ?>。

你把这个设置改为 on 就行了。但还是推荐用 <?php ?& ...
搞死,小哥子,小心点,这会出人命的,呵呵。。。
谢谢廖老大热心及时的回答,真的是这个问题,谢谢!!!!!!!!!

bug

<form action="
Fatal error: Using $this when not in object context in E:\AppServ_12_20\www\guestbook\Guestbook\View\index.php on line 95
请问是怎么回事
原帖由 z123456 于 2007-3-5 12:59 发表
<form action="
Fatal error: Using $this when not in object context in E:\AppServ_12_20\www\guestbook\Guestbook\View\index.php on line 95
请问是怎么回事
不够具体,很难判断。
返回列表