Forum
Component LisQuery in Module
Nappée
Posts: 3
Joomla Fry
Posts: 947
Nappée
Posts: 3
Joomla Fry
Posts: 947
July 14, 2022
You can create session or state variables in view file after getting items.
Here is guide on how to create:
https://docs.joomla.org/How_to_use_user_state_variables
Nappée
Posts: 3
July 15, 2022
Great, Thank you for your help.
I have used the getSession
//Array Genres
$genres= $db->setQuery($query)->loadcolumn(11);
$count_genres = array_count_values($genres);
Factory::getSession()->set('genres',$count_genres);
and get in view with
$genres= $session->get('genres');
now I have to create in javascript the function to update the content of the component