I am new to Joomla. I am trying to write a module which would fetch and display the contents from database. Now for fetching the contents from database, I need to get the current article id and category id of the current article.
I am able to get the id with article title append using JRequest::getVar('id'); ex : 16:abc-def-article-title.
I can sub-string the id out of it but I think there would be a better place of achieving it ? And also I need to get the category id as well.
Also please let me know how can I see what all variables does JRequest::getVar(') holds. Many Thanks !!