Classes & functions & includes, oh my!

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[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
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Classes & functions & includes, oh my!

Postby Obsidian » 05 Jun 2008, 15:53

Okay, I'm working on a standard MOD Database install script, and I'm having a few logic issues...

I'm using a copy of the Blinky install method (install_mod.php) and right now I'm editing that to suit my needs. Currently, I am importing a file that holds the install configuration for a MOD that is to be installed within the function 'main'.

I need to know if within other functions within the class whether the contents of the mod configuration file is included, and how to get to it.

Within the config file, I have some arrays. One of which is $mod_config.
How do I call this array in another function? Is it $this->mod_config, or something else?

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: Classes & functions & includes, oh my!

Postby igorw » 05 Jun 2008, 16:40


- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Classes & functions & includes, oh my!

Postby Obsidian » 05 Jun 2008, 16:51

Ohhhkay then, that clears things up. Thanks evil!


[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 Development discussion”

Who is online

Users browsing this forum: No registered users and 20 guests