Tag archives for events

PowerEventListener

CakePHP allow you to dispatch events and listen to them since v2.1 with Cake Event System.

CakePOWER supplies a class to be extended by your Event Listener objects to interact with events easily and with some nice behaviors: PowerEventListener.

class myEventListener extends PowerEventListener {

  public $events = array(
    'CakePower.pluginsLoaded' => 'foo'
  );

  public function foo() {
    debug("All plugins was loaded by CakePower!");
  }

}

The first main difference from implementing CakeEventListener consist in replacing implementedEvents() method with a clean public $events class property… and this is only the first thing!

Continue reading »

Posted in CakePOWER | Leave a comment

BackboneJS Declarative Events

Today I merged into my BackboneKIT project a piece of code from backbone.declarative GitHub page to implement declarative events into Views. Continue reading »

Posted in BackboneJS | Leave a comment

BackboneJS Inheritance by BackboneKIT

I often use to create a layered components app where each object may extend an existing one: An Image extends a Panel, a Panel extends a Component.

In BackboneKIT each layer can extend parent’s layer with the Backbone.View::extend() method (as normal) but some thing goes slightly different from the BackboneJS way. Continue reading »

Posted in BackboneJS | Leave a comment

CakePower Events API

CakePower triggers lots of events while performing it’s logic so you can write some listeners and inject logic and code into altering the standard flow of the application.

This post describe each event triggered by CakePower, it’s properties and available returning values.

Continue reading »

Posted in CakePHP | Leave a comment

Swedish Greys - a WordPress theme from Nordic Themepark.