Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How can I pass parameters to controller/action not in URL?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bs28723  
View profile  
 More options Apr 28 2012, 8:23 pm
From: bs28723 <bill.sto...@boosterwebsolutions.com>
Date: Sat, 28 Apr 2012 17:23:56 -0700 (PDT)
Local: Sat, Apr 28 2012 8:23 pm
Subject: How can I pass parameters to controller/action not in URL?

I looked at routing, but I did not see a way to solve my problem.

I am looking for a way to create links to controller/actions and pass "large" or 'hidden' parameters.
I could use a from and post, but seems like a lot of work for 1 or 2 links in a view.

I understand the simple link call with 1 parameter.
echo  $html->link('View Post',  array('controller'  =>  'posts',  'action'  =>  'view',  5));

But, how can I pass large strings like

$largestring = "This is a large string that could be over 255 characters
long and might contain html special characters";

echo  $html->link('Update Post',  array('controller'  =>  'posts',  'action'  =>  'update',  $largestring));

or
$hidden = "password"; // or a variable I don't want to show in URL.

echo  $html->link('Unlock Safe',  array('controller'  =>  'safes',  'action'  =>  'unlock',  $hidden));

Is the only option to make these views forms and make these buttons, so I can
parse passed in variables using request->data?

Thanks,
Bill

--
View this message in context: http://cakephp.1045679.n5.nabble.com/How-can-I-pass-parameters-to-con...
Sent from the CakePHP mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alejandro Gómez Fernández  
View profile  
 More options Apr 28 2012, 8:54 pm
From: Alejandro Gómez Fernández <agom...@gmail.com>
Date: Sat, 28 Apr 2012 21:54:33 -0300
Local: Sat, Apr 28 2012 8:54 pm
Subject: Re: How can I pass parameters to controller/action not in URL?

Did you try with session variables?

Enviado desde mi iPad

El 28/04/2012, a las 21:23, bs28723 <bill.sto...@boosterwebsolutions.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bs28723  
View profile  
 More options Apr 29 2012, 11:27 am
From: bs28723 <bill.sto...@boosterwebsolutions.com>
Date: Sun, 29 Apr 2012 08:27:18 -0700 (PDT)
Local: Sun, Apr 29 2012 11:27 am
Subject: Re: How can I pass parameters to controller/action not in URL?

    I guess this could work. I just don't think of session variables as
    a way to pass parameters from one routine to another.

    seems like there may be way for session info to get messed up
    between calls?

    On 4/28/2012 8:53 PM, Alejandro Gómez Fernández [via CakePHP] wrote:

      Did you try with session variables?

        Enviado desde mi iPad

        El 28/04/2012, a las 21:23, bs28723 &lt; [hidden email] &gt;
        escribió:

        I looked at routing, but I did not see a way to solve my
          problem.

          I am looking for a way to create links to controller/actions
          and pass "large" or 'hidden' parameters.

          I could use a from and post, but seems like a lot of work for
          1 or 2 links in a view.

          I understand the simple link call with 1 parameter.

          echo  $html-&gt;link('View Post',  array('controller'  =&gt;
           'posts',  'action'  =&gt;  'view',  5));

          But, how can I pass large strings like

          $largestring = "This is a large string that could be over 255
          characters
          long and might contain html special characters";

          echo  $html-&gt;link('Update Post',  array('controller'  =&gt;
           'posts',  'action'  =&gt;  'update',  $largestring));

          or

          $hidden = "password"; // or a variable I don't want to show in
          URL.

          echo  $html-&gt;link('Unlock Safe',  array('controller'  =&gt;
           'safes',  'action'  =&gt;  'unlock',  $hidden));

          Is the only option to make these views forms and make these
          buttons, so I can

          parse passed in variables using request-&gt;data?

          Thanks,

          Bill

          View this message in context: How can I pass
            parameters to controller/action not in URL?
          Sent from the CakePHP mailing list archive
          at Nabble.com .
          --
          Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

          Check out the new CakePHP Questions site http://ask.cakephp.org
          and help others with their CakePHP related questions.
           
           
          To unsubscribe from this group, send email to
          [hidden email]
          For more options, visit this group at http://groups.google.com/group/cake-php

      --
      Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

      Check out the new CakePHP Questions site http://ask.cakephp.org
      and help others with their CakePHP related questions.
       
       
      To unsubscribe from this group, send email to
      [hidden email]
      For more options, visit this group at http://groups.google.com/group/cake-php

        If you reply to this email, your
          message will be added to the discussion below:
        http://cakephp.1045679.n5.nabble.com/How-can-I-pass-parameters-to-con...

        To start a new topic under CakePHP, email
        ml-node+s1045679n125572...@n5.nabble.com  
        To unsubscribe from CakePHP, click
          here .
        NAML  

--
View this message in context: http://cakephp.1045679.n5.nabble.com/How-can-I-pass-parameters-to-con...
Sent from the CakePHP mailing list archive at Nabble.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lowpass  
View profile  
 More options Apr 29 2012, 2:21 pm
From: lowpass <zijn.digi...@gmail.com>
Date: Sun, 29 Apr 2012 14:21:19 -0400
Local: Sun, Apr 29 2012 2:21 pm
Subject: Re: How can I pass parameters to controller/action not in URL?
If you want update a Post, as in your example, you should be using a form.

On Sat, Apr 28, 2012 at 8:23 PM, bs28723


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »