Hi! I'm trying to implement the with_show feature on an admin module, but it appears that it just doesn't work 'out of the box' yet. I noticed that when you set the with_show parameter to true, and you render the module on the web browser, on the cache/backend/[env]/ modules/auto[module]/templates directory you can see a template named showSuccess.php. I'm using symfony-1.2.7 and this is what I have done:
1) I created my own show action for the module: class expenseActions extends autoExpenseActions { public function executeListShow(sfWebRequest $request) { $this->tnl_expense = TnlExpensePeer::retrieveByPk($request- >getParameter('id')); $this->forward404Unless($this->tnl_expense); } } 2) Changed the generator.yml file to add my show object_action: generator: class: sfPropelGenerator param: model_class: TnlExpense theme: admin non_verbose_templates: false with_show: true ... config: ... list: object_actions: show: ~ [/CODE] 3) Created the ListShowSuccess.php template for rendering the action This is the way I added the show feature, but it's not at all as customizable as using the full power of a generator, and I know that this will be a temp solution. Has someone accomplished to add the with_show feature into their generator successfully? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---