0
Hello, i want to know how can i get the current playlist... i see that every time i press the add button a javascript sent the song_id,playlist id, type in the playlist page...
so I want to get this playlist to show it to another page...
Please can you help me?
Thanks!!!
so I want to get this playlist to show it to another page...
Please can you help me?
Thanks!!!
Responses (5)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0$session = &JSession::getInstance('','');
$playlist_id = $session->get('current_playlist') ; // the playlist is an array
if(!$playlist_id) $playlist_id = 0;
$playlist_url = JRoute::_('index.php?option=com_muscol&view=playlist&id='.$playlist_id.'&format=feed&type=xspf') ;
$encoded_playlist_url = urlencode($playlist_url);
I see that you get the current playlist with this code from the session... so can you help how i can print the whole array...??
Thanks!!
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »