Re: Parameter passing in URL

2008-11-25 Thread Mathew
Hi Daniel, You need to then add the ID as a hidden input for the form. This way the value of the ID is included in the posted data, and any validation attempts. After a successful form entry the controllers action would perform a redirect to insert the ID back into the URL. function post() {

Re: Parameter passing in URL

2008-11-25 Thread Daniel Süpke
k? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Feanor's Curse wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> we are using CakePHP 1.2 and I was wondering how it co

Re: Parameter passing in URL

2008-11-25 Thread Daniel Süpke
Hi Mathew, thanks for the help (and sorry for the delay in answering). That's a good idea and I followed your advise, but still one problem persists: If, in step 3 there is something wrong in validation, cake will return to the form again. But now, the ID is no longer in the URL, so there is a

Re: Parameter passing in URL

2008-11-05 Thread Mathew
Hi Daniel, You want to include the ID in the URL so that it persists when bookmarked, and using a session doesn't provide that feature. I understand what your trying to do, but the form action does not require the ID to be included, because posted form requests first require an HTML page to disp

Re: Parameter passing in URL

2008-11-05 Thread RyOnLife
>>>>>>> we are using CakePHP 1.2 and I was wondering how it could be >>>>>>> achieved >>>>>>> to pass a parameter along every URL. We have a parameter set to an >>>>>>> ID >>>>>>> and it needs to be

Re: Parameter passing in URL

2008-11-05 Thread Daniel Süpke
t;>>>>> to pass a parameter along every URL. We have a parameter set to an ID >>>>>> and it needs to be included in every URL in the application. >>>>>> Now, the first solution was to create a LinkHelper which added the >>>>>&g

Re: Parameter passing in URL

2008-11-04 Thread RyOnLife
elper which added the >>>>> location via $_GET, but this is not working when forms are validated >>>>> by Cake, since then the url is not going via the LinkHelper. >>>>> So, is there any easy way to pass around a parameter in the URL in the >>>

Re: Parameter passing in URL

2008-11-04 Thread Daniel Süpke
t;> by Cake, since then the url is not going via the LinkHelper. >>>> So, is there any easy way to pass around a parameter in the URL in the >>>> entire application? >>>> Best Regards, >>>> Daniel Süpke >>> -- >>> View this message in

Re: Parameter passing in URL

2008-11-03 Thread RyOnLife
his is not working when forms are validated >> > by Cake, since then the url is not going via the LinkHelper. >> >> > So, is there any easy way to pass around a parameter in the URL in the >> > entire application? >> >> > Best Regards, >> > Daniel

Re: Parameter passing in URL

2008-11-03 Thread Daniel Süpke
n the > > entire application? > > > Best Regards, > > Daniel Süpke > > -- > View this message in > context:http://n2.nabble.com/Parameter-passing-in-URL-tp1118744p1382739.html > Sent from the CakePHP mailing list archive at Nabble.com. --~--~-~--~~

Re: Parameter passing in URL

2008-10-27 Thread RyOnLife
ass around a parameter in the URL in the > entire application? > > Best Regards, > Daniel Süpke > > > > > -- View this message in context: http://n2.nabble.com/Parameter-passing-in-URL-tp1118744p1382739.html Sent from the CakePHP mailing list archive at Nabble.com. --~

Re: Parameter passing in URL

2008-10-10 Thread Daniel Süpke
Thanks for your answer! Storing the id in the session is unfortunately not possible as the user may have different tabs with different ids. Anyway, I think most of the problems are solved, but suddenly there is something new (at least, I discovered it just now), which I think might be a bug:

Re: Parameter passing in URL

2008-09-26 Thread RichardAtHome
or store the id in the session? On Sep 26, 12:17 pm, Daniel Süpke <[EMAIL PROTECTED]> wrote: > Thank you very much, I'll have a look at that! > > Best Regards, > Daniel Süpke > > [EMAIL PROTECTED] wrote: > > > I haven't done exactly that but I think you could set all urls and > > links using the

Re: Parameter passing in URL

2008-09-26 Thread Daniel Süpke
Thank you very much, I'll have a look at that! Best Regards, Daniel Süpke [EMAIL PROTECTED] wrote: > > I haven't done exactly that but I think you could set all urls and > links using the array notation. The array could then also be pre- > populated with the parameter you want to keep in each r

Re: Parameter passing in URL

2008-09-26 Thread [EMAIL PROTECTED]
I haven't done exactly that but I think you could set all urls and links using the array notation. The array could then also be pre- populated with the parameter you want to keep in each request. (Pre- populated in some central place like AppController::beforeFilter before any links are generated

Parameter passing in URL

2008-09-25 Thread Feanor's Curse
Hi, we are using CakePHP 1.2 and I was wondering how it could be achieved to pass a parameter along every URL. We have a parameter set to an ID and it needs to be included in every URL in the application. Now, the first solution was to create a LinkHelper which added the location via $_GET, but

Parameter passing in URL

2008-09-25 Thread Daniel Süpke
Hi, we are using CakePHP 1.2 and I was wondering how it could be achieved to pass a parameter along every URL. We have a parameter set to an ID and it needs to be included in every URL in the application. Now, the first solution was to create a LinkHelper which added the location via $_GET, but