Hello lads, it´s been a while since my last post but of course I have a good reason to explain my absence ^^. Right now im writing this post in Tenerife ( Canarian Islands ). And i´ve been working at my new CMS.
So far i´ve got the basic structure finished it has some nice features. I didn´t really base myself on some other system but I did try to create a template system. It works like this :
First action i define a Constant “In_Site”, all my scripts are written in an IF statement to see if it is defined otherwise it wont run. Its to prevent messy errors when u go to the script directly. What happends next is I load in the config and functions wich are static and no operation occurs. Next we establish the database connection with the help of my DB class. Im still working on it tough and trying to figure out if there is a way to rollback DB events when an error occurs. I know this is possible with MySQLite so now I have to do some digging in the MySQL documentation because thats the DB im using. If the rollback function exists im going to let occur within custom error handling. The try and catch statement. After the DB class comes the settings wich require the DB connection to fetch the settings. And then we get to the templating part.
The template part loads in the default template if it exists and it then processs the variables it finds inside the tpl. Such as {SITETITLE}. Then the module gets processed for example ´News´ and while this happends u can still make changes to the template and at the end the entire part gets printed.
Or well that´s at least what I will be trying to achieve. Right now I have got the a part of the Template and Database class finished. Ill be figuring out the module part and how it loads into the template part out later.
But so far it already looks nice, I even made a custom layout for the CMS.
Ill upload some screenies soon ^^.
Greets,
Vincent

