Welcome Guest, Not a member yet? Register   Sign In
Events Library (v0.5)
#31

[eluser]Unknown[/eluser]
I am currently working on a massive online / CRM / CMS solution that requires you to send things to write PDF, writing HTML, etc. It 's very difficult to organize things when they are under control. You must remember that each controller puts the event / party activities. This allows you to switch to a central location, adjust or modify if it is called.
#32

[eluser]Eric Barnes[/eluser]
@devon - Here is one that seems to be pretty similar - https://github.com/ericbarnes/codeigniter-events
#33

[eluser]paulipv[/eluser]
1. Documentation/Download not working =).

This is a very good practice and similar with Observer pattern.

I'm looking to 1-2 programmers from here to build a nice events library.

How good they are?

Let's say that you are creating a software that comes with encrypted code.
Some of your customers may need to extend defined actions that can be extended and add new events.

For example:

We have action: customerAdd($params) that handle default things...

Code:
function customerAdd($params) {

   Event::run('beforeCustomerAdd');

   // my action code

   Event::run('afterCustomerAdd');

}


Now a buyer may want to run a code before and after things.

Code:
class MyEvents extends Observer {

  function beforecustomerAdd($params) {
   // before inserting..
  }

  function afterCustomerAdd($params)  {

    }

  }

I'm looking to do something that looks like that:

(class) Events (here comes all available events)
folder (events) (now here we create an unlimited number of classes that can handle events)

To get this done you will need a base controller that assemble everything.
#34

[eluser]Devon Lambert[/eluser]
[quote author="Eric Barnes" date="1294711977"]@devon - Here is one that seems to be pretty similar - https://github.com/ericbarnes/codeigniter-events[/quote]

Thanks Eric,

Did a quick google search after posting here and I stumbled across this one from yourself and Dan Horrigan. Figured I couldn't I couldn't go wrong with two power houses involved, so I've worked this one into my code. :-)
#35

[eluser]Davide Bellini[/eluser]
I'm using Codeigniter 2.0 with HMVC ...
with Dan's "Events" library I couldn't call an event from a controller to another ( work fine if "register" and "trigger" function are in the same controller ).

Any suggestion?
#36

[eluser]WanWizard[/eluser]
If you're using an HMVC solution, you have to register that solutions method (i.e. modules::run() or something) of calling controllers, and not the module controller directly.
#37

[eluser]Davide Bellini[/eluser]
Thank you WanWizard!
#38

[eluser]Kewix[/eluser]
Hello!
Milos Dakic's website doesn't work anymore. Can you tell if Dan’s library is better or as good as Milos one ?
Thanks
#39

[eluser]Devon Lambert[/eluser]
[quote author="Kewix" date="1307542477"]Hello!
Milos Dakic's website doesn't work anymore. Can you tell if Dan’s library is better or as good as Milos one ?
Thanks[/quote]

Not sure about Milos' library as I never had a chance to test it either, but I can say that Dan's library works perfectly for capturing events, and furthermore, it has the support of two CI Gurus. I don't think you can really go wrong.

My 2 pennies...
#40

[eluser]Kewix[/eluser]
[quote author="Devon Lambert" date="1307568516"][quote author="Kewix" date="1307542477"]Hello!
Milos Dakic's website doesn't work anymore. Can you tell if Dan’s library is better or as good as Milos one ?
Thanks[/quote]

Not sure about Milos' library as I never had a chance to test it either, but I can say that Dan's library works perfectly for capturing events, and furthermore, it has the support of two CI Gurus. I don't think you can really go wrong.

My 2 pennies...[/quote]

I've tested Dan's library today and it works good. I have some questions about it, but I will ask in the associated thread
Thank you very much !




Theme © iAndrew 2016 - Forum software by © MyBB