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
Hi, thanks for your support. I think Mathew got it pretty good, let's say I want to safe the parameter in the URL for bookmarking. Also, the user can have some tabs open with different IDs (actually, location IDs he can change at any time). Best Regards, Daniel RyOnLife wrote: > > Daniel, I

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
Daniel, I'm a big fan of Firecake. Big time saver!! Back to your problem: You've described it in pretty general terms, which I think is usually a good idea for posting in a forum. In this case though, maybe if you provided some background and gave more specifics on what you're trying to do, myse

Re: Parameter passing in URL

2008-11-05 Thread Daniel Süpke
Well, thanks for the tool RyOnLife, that's very nice indeed. Yet, I do not see how this will solve the general problem. There is an ID which has to be assigned to every page. The user can change this ID, but this should not affect any opened tabs, where he still must be able to continue with t

Re: Parameter passing in URL

2008-11-04 Thread RyOnLife
Daniel, I suggest you download the Firebug Firefox add-on and try it out with the http://bakery.cakephp.org/articles/view/firecake-helper Firecake helper for CakePHP. Makes it really easy to see what's going on with session variables. Feanor's Curse wrote: > > > How? If the user opens a ne

Re: Parameter passing in URL

2008-11-04 Thread Daniel Süpke
How? If the user opens a new tab and changes the ID there (in the session), it will affect all other tabs, won't it? Best Regards, Daniel Süpke RyOnLife wrote: > > Multiple tabs won't inhibit the use of sessions. > > > Feanor's Curse wrote: >> >> Thanks for the suggestion, but session vari

Re: Parameter passing in URL

2008-11-03 Thread RyOnLife
Multiple tabs won't inhibit the use of sessions. Feanor's Curse wrote: > > > Thanks for the suggestion, but session variable won't work since the > user could have open multiple tabs with different IDs. > > Best Regards, > Daniel Süpke > > On Oct 27, 4:06 pm, RyOnLife <[EMAIL PROTECTED]> wr

Re: Parameter passing in URL

2008-11-03 Thread Daniel Süpke
Thanks for the suggestion, but session variable won't work since the user could have open multiple tabs with different IDs. Best Regards, Daniel Süpke On Oct 27, 4:06 pm, RyOnLife <[EMAIL PROTECTED]> wrote: > Any reason setting a session variable wouldn't work? > > > > Feanor's Curse wrote: > >

Re: Parameter passing in URL

2008-10-27 Thread RyOnLife
Any reason setting a session variable wouldn't work? Feanor's Curse wrote: > > > 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

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