Archives for September 2011
You are currently browsing 3 articles posted September 2011.
SleekPHP.com is Live
Published Wednesday 28th of September 2011
After a month or so of some seriously late nights (early mornings) I've now gone live with SleekPHP.com.
Everything about SleekPHP kan be found there so I won't write any more here.
SleekPHP.com. Oh yea, SleekMobile too.
Be the first to post a comment
SleekPHP Progress
Published Wednesday 21st of September 2011
SleekPHP is the new name for aFramework and it is as usual a complete rewrite with loads of improvements.

It builds on the same structure as aFramework where a Site can extend many other Sites and each Site consists of many Pages which each have many Modules.
One of the things I wanted to focus on with SleekPHP was to try and write better OOP. For example all of the previously mentioned components are now classes with handy functionality. Where before the aFramework-class would handle almost everything there are now 3 main classes that make up a page:
- SleekPHP - ties everything together and holds instances of DB, Router, User etc
- Site - represents a Site (a directory in the Sites/-directory along with a mandatory SiteName.info-file)
- Page - represents a Page (an .xml file in a Site's Pages/-directory)
I've been scratching my head quite frequently lately trying to figure out where each method should reside. For example, should it be Site->renderPage(pageName) or Page->render()? I think it's ok as it is now, and these things can quite easily be changed without having to change third party code afterwards.
I've also tried to focus a lot on keeping the core stuff really clean and properly commented and also try to move as much as possible to external modules and plug-ins.
Plug-ins is another new feature as well and all they really are are functions that run at a certain points in the execution of the framework. I've for example moved the HTML packing and debug logging to plug-ins instead of keeping them somewhere in core.
There's still a lot to be done but core is getting close to being "finished" and after that I'm gonna focus on getting sleekphp.com as well as mobile.sleekphp.com (SleekMobile) up and running. After that I need to convert andreaslagerkvist.com to the new code. Which is a massive project so it may take some time.
If you're interested in the code you can as always find it on Google code.
I'd start with the index.php file, then check out the SleekPHP class which should lead you to the Site class and finally the Page class.
There's a total of 15 files in core but some of them are almost empty at the moment. Almost all of the meat is done in the files mentioned above.
Be the first to post a comment
Server Problems and More
Published Wednesday 21st of September 2011
You may have noticed the site's been down a few days (weeks even perhaps) and because I've been a bit lazy it's taken me 'til today to fix it.
Me and a couple of mates have had our own VPS for a while now but a while back it suddenly went down and because there's really nothing crucial on it no one's been in the mood to sort it out.
Today I set up my own brand new server and will start using that for future projects. I've also spent the evening backing up data from the old server.
When doing the DB-dumps I noticed that one of my sites (one I've completely stopped working on ages ago) had gone from a 300kb dump to a 30mb dump in a matter of weeks. Which is most likely the root of our problems.
I was using a modified version of Jonathan Snook's spam checker and apparently the damn bots have now found a way around that too. Luckily it has yet to affect any of my other sites using the same spam tool.
Anyway, I got into the cleaning up spirit and decided to drop quite a few of my sites. In fact I deleted all my personal projects except for this site and will be moving a couple of other projects away from the server (and aFramework) soon as well.
The reason I've taken down a-framework.org (along with the demo and bugtracker) is that I've started work on the new version of the framework; SleekPHP.
My plan for the future is:
- Move all sites off the old server
- Archive aFramework and all of its sites
- Convert andreaslagerkvist.com to SleekPHP
- Remove old server, have only andreaslagerkvist.com and sleekphp.com on new server (both running SleekPHP)
The biggest problem is converting this site to SleekPHP. SleekPHP's engine is pretty much finished but I haven't built any of the many sites that come with aFramework yet (like aCMS and aBlog etc). In fact, I haven't even set up the DB-stuff in SleekPHP yet.
I'm not sure yet whether I should try to create at least something basic to put on this domain before I remove the old server or if I might just let andreaslagerkvist.com rest for a while and then reboot in a few months with the new framework (and most likely a new design as well). I guess I'll lose all my Google ranking in that time but wtf all that leads to is bug reports on jQuery plugins anyway :P
Be the first to post a comment