Tuesday, March 31, 2009

Re: Router pass email

I guess the .de looks like an extension. Why it would strip it from
your route is another question.

You could avoid this altogether (depending on your situation) by
POSTing the email address to your action. If this link is
auto-generated and included in a newsletter email, I guess that'd be
out of the question. Unless you provided a generic link and had the
user submit their email from a form.

On Tue, Mar 31, 2009 at 1:28 PM, hasentopf
<mathias.koelling@googlemail.com> wrote:
>
> Hi again.
>
> In my routes.php I also got:       Router::parseExtensions('rss');
>
> This entry is necessary for creating a RSS feed with the RssHelper.
>
> When the Router::parseExtensions('rss'); comes before Router::connect
> ('/newsletter/unsubscribe/:email', array('controller'
> => 'newsletterReceivers', 'action' => 'unsubscribe'), array('pass' =>
> array('email')));  the email parameter is passed correctly.
>
> Can anyone explain this?
>
> Best
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: