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 wrote:
> The "name" attribute is deprecated in XHTML, in favor of the "id" attribute
> (which behaves like the old "name" attribute did)
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 wrote:
> isn't the use of named anchors deprecated?
>
> On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter wrote:
>
>>
>
isn't the use of named anchors deprecated?
On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter wrote:
>
> +1
>
>
> On 10 Dec 2009, at 22:54, takeshin wrote:
>
>
>>
>>
>> Jason Austin wrote:
>>
>>>
>>>
>>> Hope this helps. I smell a feature request for adding hashes to
>>> routes & url helpers :)
>>
+1
On 10 Dec 2009, at 22:54, takeshin 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:
http://n4.nabble.com/Adding-a-to-a-URL-using-gotoRoute-tp957210p960642.html
Se
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
Possibly. Although I think its more than just a redirector helper
issue, as the url view and action helpers also don't account for the
hash. That's why I was thinking it should happen at the route level,
where 'module', 'controller', and 'action' are reserved words, you
could do the same with 'an
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 op
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
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:
$this->_helper->redirector->setPrependBase('')->gotoUrl($this->_helper->url-
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 wrote:
> Maybe one cou
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,
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 wrote:
> I am trying to use the redirector action helper to call gotoR
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
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('mod
14 matches
Mail list logo