Hi, you don't, sorry, my mistake. But I think the problem is that you wrote 'Action:' in you generator.yml with an uppercase 'A'. When you write 'action:' it should work. I'm having the same problem if I write it with an uppercase 'A'.
Cheers, Lea On Mar 29, 2010, at 10:38 , Rs232 wrote: > hi, no I did not edit the file routing.yml, how should we set this > one? > thank you for your help > > On Mar 29, 7:39 am, Lea Hänsenberger <baerne...@gmail.com> wrote: >> Hi, >> did you also create the route for that action in the routing.yml? >> >> Cheers, >> Lea >> >> On Mar 26, 2010, at 10:04 , Rs232 wrote: >> >>> hello, here I use the admin generator, I would like to add an action >>> showInfos on my items so I change my generator.yml >> >>> Code: >> >>> object_actions: >>> _edit: >>> Label: Edit >>> showInfos: (label: News, Action: showInfos) >> >>> Then I added in shares \ actions.class.php the following code >> >>> Code: >> >>> class generalActions extends autoGeneralActions >>> { >>> public function executeShowInfos (sfWebRequest $request) >>> { >>> $this->hardware = Doctrine::getTable('hardware')->createQuery('a')- >>>> addWhere('id='.$request->getParameter("id"))->fetchOne(); >>> $this->setTemplate('showInfos'); >>> } >>> } >>> I add in the template file showInfosSuccess.php to display my info >>> and so when I want to run the action I have the following error >>> Code: >> >>> 404 | Not Found | sfError404Exception >>> Action "general/action" does not exist. >> >>> thank you for your help >> >>> -- >>> If you want to report a vulnerability issue on symfony, please send it to >>> security at symfony-project.com >> >>> You received this message because you are subscribed to the Google >>> Groups "symfony users" group. >>> To post to this group, send email to symfony-users@googlegroups.com >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/symfony-users?hl=en >> >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscribegooglegroups.com or reply to this email with the >>> words "REMOVE ME" as the subject. > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > > To unsubscribe from this group, send email to > symfony-users+unsubscribegooglegroups.com or reply to this email with the > words "REMOVE ME" as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.