query string

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
pradips
Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Wed Apr 16, 2014 4:41 am

query string

Post by pradips » Fri Apr 10, 2015 1:40 pm

hi,

i want passing query string from url
Last edited by imanickam on Sat Apr 11, 2015 4:20 am, edited 1 time in total.
Reason: Moved the topic from the forum Extensions for Joomla! 3.x to the forum Joomla! 3.x Coding

Ulapso
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Mon Apr 06, 2015 4:48 am
Location: Planet Earth

Re: query string

Post by Ulapso » Thu Apr 16, 2015 12:43 pm

give you a example as a start... read the API how to use it

Code: Select all

$app = JFactory::getApplication('site');
$id = $app->input->getInt('id');
$layout = $app->input->getVar('layout');
$this->view = $app->input->getVar('view');
Good luck! :geek:
Last edited by Ulapso on Thu Apr 16, 2015 6:35 pm, edited 2 times in total.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30940
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: query string

Post by Per Yngve Berg » Thu Apr 16, 2015 2:28 pm



Locked

Return to “Joomla! 3.x Coding”