Hey guys, I have 2 very identical templates which have only a minor difference to them. Their action is exactly the same. So instead of retyping code or wasting precious space (LOL), here is what my genius conjours:
private function privateAction() { // do some amazing coding } public function executeMyAction1() { $this->privateAction(); } public function executeMyAction2() { $this->privateAction(); } So basically, I redefined the common action as a private action. Is this a fine strategy? Or do we have a better recommended strategy! -- 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