[Question] About $REQUEST['config']

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

[Question] About $REQUEST['config']

Postby Dakin Quelia » 24 Sep 2009, 15:57

Hello,

I have a question:

The function request_var('config') is prefered instead of $_REQUEST['config']? If yes, in php file includes/acp/acp_board.php, there is a $_REQUEST['config'].

See you soon,

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Question] About $REQUEST['config']

Postby igorw » 24 Sep 2009, 17:56

Yes it is prefered. It also applies for $_POST and $_GET. request_var should be used if possible.

The reason that it's still used in some cases is because it needs to. One case for this is when using isset(). The other is for some advanced array requesting, as in acp_board.

- we're poor!

Dakin Quelia
New member
New member
Posts: 49
Joined: 12 Nov 2008, 01:26
Real name: Daniel
Location: Belgique
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: [Question] About $REQUEST['config']

Postby Dakin Quelia » 24 Sep 2009, 17:59

Thank you very much. I understand. ;)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: Yandex [Bot] and 4 guests