Sourcerer & Url Post data

Search
Other Pre-Sale questions
Forum

Sourcerer & Url Post data

Mauro Miotello's Avatar Mauro Miotello
One year ago i had a full subscription and i'm now evaluating to buy Sourcerer
Can i use it to manage POST data coming from a form submit ?
I'm asking it because i've tried my last version sourcerer-v9.2.3-pro & Joomla 4.2.6 with code like this:
{source}
<?php
$uri = JFactory::getURI();
print_r($uri);
?>
{/source}

but i've this error:
CALL TO UNDEFINED METHOD JOOMLA\CMS\FACTORY::GETURI()

Thanks

Mauro
Peter van Westen's Avatar Peter van Westen ADMIN
Your code is indeed not correct. So the error is as expected.

Try:
{source}<?php
print_r($app->input->getArray());
?>{/source}

This isn't really a pre-sales question, and not even a Sourcerer question. This is down to Joomla PHP code.
Please post a rating at the Joomla! Extensions Directory
Mauro Miotello's Avatar Mauro Miotello
ok sorry but i've copied code from here:
regularlabs.com/forum/sourcerer/49642-in...rent-$uri-won-t-work

so can't we use $uri = JFactory::getURI(); ?

Thanks

Mauro
Peter van Westen's Avatar Peter van Westen ADMIN
That is down to a difference between Joomla 3 and Joomla 4.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in