In your routing.yml (and every other yml) you must have at least one space after the colon ( : ), which you don't have after the "url:" key.
On Mon, Sep 28, 2009 at 21:08, Josh <[email protected]> wrote: > > I'm getting a 404 when trying to add a new module page. I'm apparently > missing something fundamental here, being a newbie to Symfony. Can > anyone point out what it is I'm missing? I've even added the > > Many thanks. > > ------------------------ > config/routing.yml > > schedule: > url:/admin/schedule > param: {module: admin, action: schedule} > > > > > modules/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; > } > } > > > > modules/admin/templates/scheduleSuccess.php > > <?=set_title('Schedule')?> > > <form action="/admin/schedule" method="POST"> > <input name="foo" type="text"> > <?php echo submit_tag('Schedule'); ?></p > > > > Upon submit, I get this error: > > 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" > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
