Fork me on GitHub

How to obtain whole $_REQUEST array?  Bottom

  • As in topic title: how to obtain whole $_REQUEST array, when we don't know what params can be in it?
    pnVarCleanFromInput or FormUtil::getPassedValue allows to get params which name we know. While it is recommended to obtain all data by FormUtil::getPassedValue I don't want to use directly $_REQUEST and I'm looking for some API-compliant way to get whole requested data without specifying every single var?

    Thanks in advance for help :)

    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • How about this one:

    Code

    $myCleanRequest = FormUtil::cleanArray($_REQUEST);


    icon_wink

    --
    Guite | ModuleStudio
  • Heh - clever :)
    And more important its working
    Great thanks!

    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi

This list is based on users active over the last 60 minutes.