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
Try this one: array_merge(array(
'controller'=>'users',
'action'=>'collection',
$param['username'],
$param['page']),
$params['sort'],
$params['
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
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
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
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
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:
>
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",
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
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
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,
> $
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(
12 matches
Mail list logo