Re: passing array as parameters of redirect function

2010-09-07 Thread Crazy
easiest/fastest way, use implode/explode $string = implode('|', array('1', '2')); $array = explode('|'); if you really want to pass an array, do it like this: http://example.com/mycontroller/myaction/?param[]=value1¶m[]=value2&;... and use the php $_REQUEST/$_GET or should also be visible i

Re: passing array as parameters of redirect function

2010-09-07 Thread Divya
Try this one: array_merge(array( 'controller'=>'users', 'action'=>'collection', $param['username'], $param['page']), $params['sort'], $params['

Re: passing array as parameters of redirect function

2010-09-07 Thread Mariano C.
Suggestions? On 7 Set, 09:27, "Mariano C." wrote: > array_merge() returns me another array, so I really don't understand > how I should use it. > > On 6 Set, 18:49, "j.blotus" wrote: > > > > > array_merge() > > > On Sep 6, 12:15 pm, "Mariano C." wrote: > > > > Can I resolve serializing the arra

Re: passing array as parameters of redirect function

2010-09-07 Thread Mariano C.
array_merge() returns me another array, so I really don't understand how I should use it. On 6 Set, 18:49, "j.blotus" wrote: > array_merge() > > On Sep 6, 12:15 pm, "Mariano C." wrote: > > > > > Can I resolve serializing the array()? > > And if I could how should I code the things? > > > On 6 Se

Re: passing array as parameters of redirect function

2010-09-06 Thread j.blotus
array_merge() On Sep 6, 12:15 pm, "Mariano C." wrote: > Can I resolve serializing the array()? > And if I could how should I code the things? > > On 6 Set, 18:12, euromark wrote: > > > > > you cannot put another array into the url array > > > On 6 Sep., 17:52, "Mariano C." wrote: > > > > This i

Re: passing array as parameters of redirect function

2010-09-06 Thread Mariano C.
Can I resolve serializing the array()? And if I could how should I code the things? On 6 Set, 18:12, euromark wrote: > you cannot put another array into the url array > > On 6 Sep., 17:52, "Mariano C." wrote: > > > > > This is the error (line 121 in users_controller.php is "));" that > > closed

Re: passing array as parameters of redirect function

2010-09-06 Thread euromark
you cannot put another array into the url array On 6 Sep., 17:52, "Mariano C." wrote: > This is the error (line 121 in users_controller.php is "));" that > closed redirect() function inside removeFromCollection()). > > Array to string conversion [CORE/cake/libs/router.php, line 1556] > Context: >

Re: passing array as parameters of redirect function

2010-09-06 Thread Mariano C.
This is the error (line 121 in users_controller.php is "));" that closed redirect() function inside removeFromCollection()). Array to string conversion [CORE/cake/libs/router.php, line 1556] Context: $params = array( "controller" => "users", "action" => "collection",

Re: passing array as parameters of redirect function

2010-09-05 Thread j.blotus
No array to string conversion errors? What kind of E_NOTICE error are you getting. On Sep 5, 3:27 pm, "Mariano C." wrote: > I haven't error message, line 106 and 107 are just the line of > collection() function with debug instructions. > > On 5 Set, 21:04, "j.blotus" wrote: > > > > > what is the

Re: passing array as parameters of redirect function

2010-09-05 Thread Mariano C.
I haven't error message, line 106 and 107 are just the line of collection() function with debug instructions. On 5 Set, 21:04, "j.blotus" wrote: > what is the specific error message you are getting. check lines 106 > and 107 of your users_controller.php > > On Sep 5, 12:38 pm, "Mariano C." wrote

Re: passing array as parameters of redirect function

2010-09-05 Thread j.blotus
what is the specific error message you are getting. check lines 106 and 107 of your users_controller.php On Sep 5, 12:38 pm, "Mariano C." wrote: > Then I've a method called collection > > function collection($username = null, >                            $page = 1, >                            $

passing array as parameters of redirect function

2010-09-05 Thread Mariano C.
Then I've a method called collection function collection($username = null, $page = 1, $sort = array('Artist.name', 'Album.year'), $direction = array('ASC', 'ASC') ) { debug(is_array(