Answers for "twig url"

PHP
0

twig url

//make twig extension
  function dollar($type, $var)
    {
        switch ($type) {
            case 'post':
                return $_POST[$var];
                break;
            case 'get':
                return $_GET[$var];
                break;
            case 'request':
                return $_REQUEST[$var];
                break;
            case 'session':
                return $_SESSION[$var];
                break;
            case 'server':
                return $_SERVER[$var];
                break;
        }
    }
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language