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,
[Question] About $REQUEST['config']
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
Please post any phpBB 3.1.x related topics in the forum.
-
- 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
- igorw
- 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']
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.
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!
-
- 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']
Thank you very much. I understand.
Return to “phpBB 3.0.x "Olympus" discussion”
Who is online
Users browsing this forum: Yandex [Bot] and 35 guests