CodeIgniter Forums

Full Version: A new event library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Rich Cavanaugh[/eluser]
The company I work at, Tycoon Research, has just released a new CI event library. I've put up a blog post about it and about why we decided to write our own instead of use one of the existing libraries.

http://withoutscope.com/2010/1/3/ci-even...nt-library

I think we've hit a good balance of flexibility and transparency. The two big points on those issues are:

- A single configuration that you can see all the event to handler mappings in. No wondering what's handling what.
- Multiple ways of passing data into the handlers both at run-time and in the config file. Allows for more effective re-use of handlers.

The actual code is on github if you want to skip the blog post:

http://github.com/rich/ci-events

Thoughts? Questions?

El Forum

[eluser]AgentPhoenix[/eluser]
I'm really intrigued by this. I'm definitely going to have to grab a copy and kick the tires. Thanks for contributing this!

El Forum

[eluser]Rich Cavanaugh[/eluser]
Let me know if you have any questions or problems. I'm happy to help.

El Forum

[eluser]AgentPhoenix[/eluser]
I posted a question in the comments on your blog today because of some issues I'm having. Any insight you can share would be awesome!

El Forum

[eluser]Rich Cavanaugh[/eluser]
Your problem was simply the case of your library name. The library names in the events.php config file need to be all lowercase. Once you make it lowercase, it should work.

For reference, I've published a demo app at http://github.com/rich/ci-events-demo-app

El Forum

[eluser]AgentPhoenix[/eluser]
Thanks for the heads up, I'll give it a go tomorrow and check it out.