Author: FabianLange
Date: 2010-01-26 10:51:04 +0100 (Tue, 26 Jan 2010)
New Revision: 27177
Modified:
branches/1.2/UPGRADE_TO_1_2
Log:
[doc][1.2] added note about invalid link_to('#') usage to upgrade documentation
(closes #8089)
Modified: branches/1.2/UPGRADE_TO_1_2
===================================================================
--- branches/1.2/UPGRADE_TO_1_2 2010-01-26 04:21:08 UTC (rev 27176)
+++ branches/1.2/UPGRADE_TO_1_2 2010-01-26 09:51:04 UTC (rev 27177)
@@ -661,6 +661,16 @@
// and equivalent to
<?php echo link_to('@some_route', array('method' => 'post')) ?>
+using link_to for non-symfony links is no longer possible in favour of the
+new functionality. In fact, link_to was never intended for cases like this:
+
+ [php]
+ // does no longer work
+ <?php echo link_to('Link', '#', array('onclick' => "alert('js')"); ?>
+
+ // use this instead
+ <a href="#" onclick="alert('js')">Link</a>
+
The `url_for()` and `link_to()` helpers support new signatures.
Instead of an internal URI, they can now also take the route name and
an array of parameters:
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" 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-svn?hl=en.