I've added an improvement request to Zend_Controller for this.
http://framework.zend.com/issues/browse/ZF-8522
On Thu, Dec 10, 2009 at 8:34 PM, Hector Virgen djvir...@gmail.com wrote:
The name attribute is deprecated in XHTML, in favor of the id attribute
(which behaves like the old name
I am trying to use the redirector action helper to call gotoRoute.
The page I need to go to is something like
http://mywebsite.com/blog/documentation/tags/#add which would take me
to the add anchor in the tags page. To go to that URL, my code is:
$this-_helper-redirector-gotoRoute(array('module'
The gotoRoute() method doesn't support hashes, but you can accomplish this
by using the url action helper to construct the url based on your route, and
then concatenate your hash to it. Then call the redirector's gotoUrl method:
$url = $this-_helper-url-url(array('module' = 'blog',
'controller' =
Funny that you posted this because I have the same issue I was about to
tackle with a comments anchor. I hope you get a good response. I will let
you know if I find out anything.
On Wed, Dec 9, 2009 at 4:51 PM, Jason Austin jason_aus...@ncsu.edu wrote:
I am trying to use the redirector action
Maybe one could add a target to the gotoRoute method in the future. I can't
believe that people don't need to do something like this often.
Similar to
$url = $this-_helper-url-url(array('module' = 'blog',
'controller' = 'documentation', 'action' = 'tags', 'anchor'
='comments'));
On Thu, Dec
It should be possible to extend the redirector helper to create your own
that accepts a hash as the 5th parameter. Since the action helper broker
uses a LIFO stack, you can even use the same helper name redirector.
--
Hector
On Thu, Dec 10, 2009 at 10:06 AM, Fred Jiles fredji...@gmail.com
Thanks guys. The most straight forward way was using the URL helper,
adding the hash to the end of the URL, then using gotoUrl(). One
caveat was that I had to do the following to not get the baseUrl() to
be added twice:
I can see this being useful to many people, too. Maybe instead of a 5th
parameter, there can be a setHash() method. So usage would be like this:
$redirector = $this-_helper-redirector;
$redirector-gotoRoute(/* ... */);
*$redirector-setHash('add');*
$redirector-redirectAndExit();
--
Hector
On
That's a good point. Making it a reserved word would make a lot of sense,
but I'd be afraid of breaking sites that already use anchor (like maybe an
Anchors R Us website that sells anchors for ships?) Hash may also already
be in use by some sites. But I really like the idea, maybe you should open
Jason Austin wrote:
Hope this helps. I smell a feature request for adding hashes to
routes url helpers :)
+1
--
takeshin
--
View this message in context:
http://n4.nabble.com/Adding-a-to-a-URL-using-gotoRoute-tp957210p960642.html
Sent from the Zend Framework mailing list
+1
On 10 Dec 2009, at 22:54, takeshin admi...@gmail.com wrote:
Jason Austin wrote:
Hope this helps. I smell a feature request for adding hashes to
routes url helpers :)
+1
--
takeshin
--
View this message in context:
isn't the use of named anchors deprecated?
On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter dan.lat...@gmail.com wrote:
+1
On 10 Dec 2009, at 22:54, takeshin admi...@gmail.com wrote:
Jason Austin wrote:
Hope this helps. I smell a feature request for adding hashes to
routes url
The name attribute is deprecated in XHTML, in favor of the id attribute
(which behaves like the old name attribute did).
--
Hector
On Thu, Dec 10, 2009 at 5:17 PM, Cameron themsel...@gmail.com wrote:
isn't the use of named anchors deprecated?
On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter
13 matches
Mail list logo