Done, using multiple fields :/
foreach($back_link AS $o => $v){
echo $this->Form->hidden("redirect.$o",
array('value' => $v));
}
On Fri, Nov 18, 2011 at 6:08 PM, AD7six <[email protected]> wrote:
>
>
> On Friday, 18 November 2011 17:00:40 UTC+1, Constantin.FF wrote:
>>
>> It is a bit more complicated and not always I need to redirect to the
>> referer. The controller checks if there is a "redirect_id" value setup
>> in the submited form and changes the default redirect with the one
>> from the form.
>> After submitting the form, if I pr the redirect_id i get for example:
>> array("action" => "browse", [0] => 54)
>> so ... so far it is working, also if manually i go to the /browse/54
>> url everything is fine and working
>> And the only way I was able to pass an array into the form was to
>> encode it. If there is some other better way, please advise
>
> $passThisString = Router::url($theArray);
> don't
> $needlessly = json_encode($theArray);
> AD
>
> --
> 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
> [email protected] 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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php