尝试添加新模块页面时出现 404。作为 Symfony 的新手,我显然在这里遗漏了一些基本的东西。谁能指出我错过了什么?
非常感谢。
模块/admin/actions/actions.class.php
/* following executeIndex() */
public function executeSchedule()
{
if ($this->getRequest()->getethod() != sfRequest::POST)
{
return sfView::SUCCESS;
}
else
{
$name = $this->getRequestParameter('first_name');
echo $name;
}
}
模块/管理员/模板/scheduleSuccess.php
<?=set_title('Schedule')?>
<form action="/admin/schedule" method="POST">
<input name="foo" type="text">
<?php echo submit_tag('Schedule'); ?></p
提交后,我收到此错误:
Sep 28 10:02:37 symfony [info] {sfAction} call "defaultActions->executeError404()"
Sep 28 10:02:37 symfony [warning] {404} requested url: /admin/schedule
Sep 28 10:02:37 symfony [info] {sfView} initialize view for "default/error404"