This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * A small MODX snippet to extract POST, GET, SESSION & COOKIE values - (c) 2012 ackwa.fr | |
| * | |
| * @version : 1.0.1 | |
| * @see : https://gist.github.com/gists/2853625 | |
| * | |
| * @usage : [[!argv?key=`myparam`&default=`1`]] -> return the value | |
| * [[!argv?key=`myparam`&default=`1`&toph=`1`]] -> set [[+argv.myparam]] | |
| * [[!argv?key=`myparam`&from=`GP`]] -> return the value from GET or POST |