开发者

How to pass URL parameters to a joomla module

开发者 https://www.devze.com 2023-03-04 19:48 出处:网络
I have my own nice link http://www.link.com/sometext, now I would \"enhance\" this having the opportunity to write something like http://www.link.com/sometext?parameters=myParam cause I need to send a

I have my own nice link http://www.link.com/sometext, now I would "enhance" this having the opportunity to write something like http://www.link.com/sometext?parameters=myParam cause I need to send a parameters to the article call开发者_如何学Ced by sometext.

Can I do something like that??? How can I pass parameters through the URL???? How can i get it's value?

Regards


You should use the standard Joomla way to retrieve GET/POST requests. This link should get you started: http://docs.joomla.org/Retrieving_data_from_GET_and_POST_requests

$address = JRequest::getVar('address');

EDIT - just saw your other comment. To use PHP inside article, try something like Sourcerer: http://extensions.joomla.org/extensions/edition/custom-code-in-content/5051

0

精彩评论

暂无评论...
验证码 换一张
取 消