From fe03b3f8eb371fd63c9903570416575208a6dfb4 Mon Sep 17 00:00:00 2001 From: Cameron Barr Date: Thu, 12 Feb 2015 10:48:41 +1030 Subject: [PATCH] #13 - adding first crack at behaviors description --- behaviors.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 behaviors.md diff --git a/behaviors.md b/behaviors.md new file mode 100644 index 0000000..384a2b4 --- /dev/null +++ b/behaviors.md @@ -0,0 +1,18 @@ +# Behaviors + +The Framework encourages us to **Separate what Varies** by giving us tools to encapsulate different strategies. It provides the architecture for us so we don't have to do it ourselves. The structure that you will and should use most in customizing your applications is the Behavior. + +These behaviors are essentially customization classes that let you control what happens before and after all of the major actions in the MVC and Database layer of the Framework. + +The Framework supports composition at its core. Most classes extend from KObject and as such, inherit the mixin method. This method takes an object and **mixes** in that objects mixable methods into its own interface. +> For more background on the mixin checkout [The Mixin](http://guides.nooku.org/essentials/mixin.html) section of these guides. + +What's important here is that the classes that get mixed are child classes of KMixinAbstract, and KBehaviorAbstract falls into this category. + +## Database Behaviors + +## Model Behaviors + +## View Behaviors + +## Controller Behaviors \ No newline at end of file