Author: jablko
Date: Mon Oct 18 10:41:10 2010
New Revision: 8230
Log:
Use $route->resource
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/editSuccess.php
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/editSuccess.php
==============================================================================
--- trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/editSuccess.php
Mon Oct 18 10:38:41 2010 (r8229)
+++ trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/editSuccess.php
Mon Oct 18 10:41:10 2010 (r8230)
@@ -4,7 +4,7 @@
<?php echo $form->renderGlobalErrors() ?>
-<?php if (isset($sf_request->id)): ?>
+<?php if (isset($sf_request->getAttribute('sf_route')->resource)): ?>
<?php echo $form->renderFormTag(url_for(array($resource, 'module' =>
'function', 'action' => 'edit')), array('id' => 'editForm')) ?>
<?php else: ?>
<?php echo $form->renderFormTag(url_for(array('module' => 'function',
'action' => 'create')), array('id' => 'editForm')) ?>
@@ -124,7 +124,7 @@
<div class="content">
<ul class="clearfix links">
- <?php if (isset($sf_request->id)): ?>
+ <?php if (isset($sf_request->getAttribute('sf_route')->resource)): ?>
<li><?php echo link_to(__('Cancel'), array($resource, 'module' =>
'function')) ?></li>
<li><input class="form-submit" type="submit" value="<?php echo
__('Save') ?>"/></li>
<?php else: ?>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.