What the hell is this

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
Ganon_Master
Past Contributor
Past Contributor
Posts: 311
Joined: 20 Nov 2006, 16:23
Real name: Hidde
Location: Soesterberg, Utrecht, The Netherlands
Contact:

What the hell is this

Postby Ganon_Master » 28 Sep 2007, 21:39

[url=http://area51.phpbb.com/docs/hook_system.html]Hooks[/url]. What's the point and why should I use it/them?

User avatar
Lord Le Brand
Website Team
Website Team
Posts: 223
Joined: 08 Sep 2006, 15:44
Real name: Leroy
Location: Parkstad, Limburg, the Netherlands (GMT+1)
[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: What the hell is this

Postby Lord Le Brand » 29 Sep 2007, 11:20

Wow, a hooks system :o

It could be just me, but the explanation confuses the hell out of me :\

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: What the hell is this

Postby igorw » 29 Sep 2007, 12:00

Yeah, this was added last week. This is not supposed to really be used by MODs though, it's more for CMS´. It allows you to replace functions with your own ones (have yours "hook" into them). So like this CMS´ can add their own append_sid for example, that rewrites the URL. :)

- we're poor!

websnail
New member
New member
Posts: 11
Joined: 14 Nov 2007, 09:08
Location: UK
Contact:

Re: What the hell is this

Postby websnail » 16 Nov 2007, 11:22

Oooh... Now that's useful :)

You'd be surprised how many people request functionality be portable or useable on other CMS systems when they switch (for whatever reason)... For normal mods it's going to be next to useless but for anyone (like me) who's writing add-on functionality (like a calendar) it's a deity-send :)


[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 28 guests