Basically generated forms look like :
<form action="<?php echo url_for('mymodule/'.($form->getObject()-
>isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.
$form->getObject()->getId() : '')) ?>"
BUT because I'm using routes, I would like to use route to define my
action="..." parameter.
Can you share your experience with that issue ? How do you manage this
part ?
Do you write sthg like :
<?php if (is new): ?>
<?php url_for('@myroute_1') ?>
<?php else: ?>
<?php url_for('@myroute_2') ?>
<?php endif; ?>
?
--
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.