Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthordanfreak
     
    Hey guys,

    I'll start with a small preamble so you can understand where I come from and why I ask some stuff!

    Well a know pretty well CakePHP and Code Igniter. I just had a look at RoR but I' not a master with it!

    I want to see if I can use Akelos in one of my projects.

    I didn't find documentation about plugins and behaviors.

    In CakePHP:
    - behaviors are a kinda reusable models
    - plugins are a kind of pluggable applications or part of them

    Is this specular in Akelos?

    Maybe not, apparently in Akelos plugins are what in Cake I know as behaviors. Please correct me if I'm wrong.

    If not, how can I call properly the above things in Akelos? Where I can find docs about how to write them?

    Cheers in advance for sharing!

    Dan
    • CommentAuthorsalavert
     
    • CommentAuthordanfreak
     
    cheers,

    thank I guess
    * Akelos plugin = Cake behaviors

    what about behaviors then?
    •  
      CommentAuthorbermi
     

    Behaviors are meant for making models behaving in different ways.

    For example ActsAsVersioned.

    You can also have other behaviors like Tree, Nested set or List.

    • CommentAuthordanfreak
     
    What about plugins then?

    Or better, which the difference between models and plugins in Akelos?

    Dan
    •  
      CommentAuthorbermi
     

    Models

    • Implement business rules using classes like: User, Comment, Project.
    • Keep data and logic together. For example knowing if a project is active the model should query latest activity...
    • Represents associations with other models. User has many Posts.

    Plugins

    Are pieces of code for altering/enhancing the Akelos Framework behavior.

    You can have Plugins for View Helpers, adding Smarty support, having magic finders on models....

    You can encapsulate an application into a plugin

    I'm finishing a sample admin plugin for showing how to do this.

    More on Akelos Plugins

    • CommentAuthordanfreak
     
    Great!

    I'm looking forward the example!

    Again, sorry for so many questions, but, coming from other framework, I wanted to make sure that what in my mind matches what in the Akelos architecture ;o)