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($sort));
        debug($sort);
}

it's fully working, matter of fact:
app/controllers/users_controller.php (line 106)
1

app/controllers/users_controller.php (line 107)
Array
(
    [0] => Artist.name
    [1] => Album.year
)



Now I've remove() function, something like that:
function removeFromCollection($album_user_id = null)
{
        $this->redirect(array(
                          'controller'=>'users',
                          'action'=>'collection',
                          $param['username'],
                          $param['page'],
                          array('Album.year', 'Artist.name'),
                          array('ASC', 'ASC')
       ));
}

but when I call removeFromCollection() and redirect to collection is
performed debug() output is:
app/controllers/users_controller.php (line 106)


app/controllers/users_controller.php (line 107)
Array

How can resolve this issue? How can I send array of element as
parameter?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to