If Statements
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
-
- New member
- Posts: 38
- Joined: 21 Feb 2012, 21:05
- [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: If Statements
Thanks, very helpful. I will reference this a lot!
-
- Member
- Posts: 77
- Joined: 14 Mar 2012, 06:34
- [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: If Statements
Thanks for share ....
Re: If Statements
My mistake, first example works fine.
Re: If Statements
Steve ©
-
- New member
- Posts: 9
- Joined: 03 Jul 2012, 02:27
- [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: If Statements
the way Stoker does it is the way i have been doing it for a while now, most mods use them this way.
Re: If Statements
Yep, I've always done it Stoker's way too.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
Re: If Statements
Not come across that statement pressume phpbb.com uses superglobals or rewrites them blah blah ,my code snippet is fine as it is checked that the $var exist's.
Who said that its not safe or can't be trusted?
Who said that its not safe or can't be trusted?
Steve ©
Re: If Statements
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
-
- New member
- Posts: 9
- Joined: 03 Jul 2012, 02:27
- [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: If Statements
correct Rich, that is what i meant to say that it's used for mods, and it's added depending on the page you are on
Return to “Modders MOD support”
Who is online
Users browsing this forum: Yandex [Bot] and 102 guests