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()
{
k?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Feanor's Curse wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>> we are using CakePHP 1.2 and I was wondering how it co
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
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
>>>>>>> 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
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
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
>>>
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
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
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.
--~--~-~--~~
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.
--~
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:
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
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
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
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
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
17 matches
Mail list logo