Sleek/aFramework and Drupal

Published Monday 26th of April 2010

I've never really checked out Drupal properly before (or any other framework for that matter) but tonight (16/4) I spent a few hours reading the docs.

It's almost scary how many things are similar, and in some cases completely identical, to aFramework/Sleek.

Everything from modules and hooks (new in Sleek; Events) to the way JS is implemented is ridiculously similar. Almost all of the "features" on drupal.org are covered by aFramework and in some cases we even use identical function names.

Obviously there are some major differences as well. The way aFramework and Sleek deals with pages/controllers (as XMLs) I believe is unique to it and Drupal's "nodes" and "users" are something I definitely do not have (Sleek's core is DB and config free).

TBH in some cases I found aFramework's solutions superior to Drupal's, but it's pretty obvious Drupal is a super robust, fast and intelligently developed framework and reading the docs was definitely educational. Although I'm not too fond of the procedural approach.

It should be said, though, that I have never even installed and played around with Drupal - so I'm sure I'm missing loads.

I've been thinking lately about adding support for Drupal (and others why not) modules in Sleek. Perhaps a way to specify that one particular area of the page should contain Drupal modules and then you could drop whichever modules you like in there.

<Base>
    <
Wrapper name="wrapper">
        <
Header/>
        <
Navigation/>
        <
Wrapper name="primary-content">
            <
SleekWelcome/>
        </
Wrapper>
        <
Wrapper name="secondary-content">
            <
Drupal>
                <
SomeDrupalModule/>
                <
SomeOtherDrupalModule/>
            </
Drupal>
        </
Wrapper>
        <
Footer/>
    </
Wrapper>
</
Base>

It would most certainly require that the user has Drupal installed next to Sleek and an instance of Drupal would need to be run - but I don't see why it would be impossible to fetch the HTML, CSS and JS that Drupal generates and stick it inside the <Drupal>-element in the controller... I'll need to do some research first though.

Hej

Tags
Comments
2 comments

Bookmark this Article

  • del.icio.us
  • Digg
  • Furl
  • Google
  • Technorati
  • Ma.gnolia
  • Blinklist
  • Blogmarks
  • Rojo
  • Stumbleupon

Comments

  1. tb

    Published Monday 24th of May 2010

    I must say that your framework is gettin really interesting(as I've been following the devolopment for a while now)! Keep it up!

  2. Andreas

    Published Tuesday 25th of May 2010

    Thanks :) I'm a bit torn at the moment between which version to work on.

    On one hand Sleek is better OOP but on the other aFramework works pretty well as it is and Sleek hasn't got support for half of what aFramework supports.

Post a Comment

Random jQuery Plug-ins

  • Togglable DL

    Use this plug-in on your definition-lists (dl-elements) to allow the dd:s for a dt to be toggled when clicking the dt. Don't use it unless it's semant...

    Details

  • Show Password

    This little plug inserts a "View password"-checkbox next to inputs of type password that allows the user to toggle the password's visibility. When the...

    Details

  • Tag Sizes

    Use this plug-in on a list of tags (li:s) and it will use whatever numbers found in the list to give each tag a corresponding size.

    Details

More Plug-ins

Recent Comments

  1. Andreas on "SleekPHP User Handling"

    Thank you for showing interest :) Were the docs en...

  2. ciptard on "SleekPHP User Handling"

    Ok, thank you

  3. Andreas on "SleekPHP User Handling"

    I might write a "getting started" article for Slee...

Page cached. Loaded in: 0.0103 second(s).
Last DB change: 2012-02-04 08:04:40
Last file change: 2011-10-03 07:42:35
Cache created: 2012-02-04 13:53:56