Events in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Events in PHP

Post by gautamz07 »

I never knew something called events existed in PHP , just saw it HERE https://github.com/PhileCMS/Phile/wiki/ ... ent-System , is it a fundamental concept to understand in PHP ? , are EVENTS really important in php ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Events in PHP

Post by Celauran »

Looks like you've just encountered the observer pattern. It's not something that exists in PHP per se, but rather a pattern that can be implemented. If you're interested in learning more about design patterns, I recommend giving the so-called Gang of Four book a read: http://www.amazon.com/Design-Patterns-E ... B000SEIBB8
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Events in PHP

Post by gautamz07 »

Ohhh yesss , heard alot about that pattern ! and want to learn it too :D , will google and see what i can find , will save the book for a future read :)
Post Reply