What is Hammer
Hammer is a simple PHP framework, based on a central codebase ideaall sites that use Hammer on a server, look at the same files
that way if there is an update, you update 1 set of files not 4 sets of the same file
So now you know the idea, what is Hammer,
Hammer is a simple PHP framework, simple in the sense of you do little code to get results
Alot like jQuery
Hammer is not a re-interpretation of PHP, like Expression Engine
Hammer uses built in functions and Standard PHP syntax, rather than making up its own language
Why use Hammer
A framework is there to keep your code to a minimumto stop you having to write the same code over and over again
to reduce bugs, by not using copy/paste
to make your code easier to maintaine
What isnt Hammer
Hammer is a framework in the true sense, so Hammer is not a blogHammer is not a forum
Hammer is not a whole website
So Why again should I use Hammer
Hammer allows you to create all those things with either the built in functions of Hammeror you can build those functions without having to worry about Hammer overwriting them on an update
To understand better, there are some examples provided, and the documentation
Hammers Folder Structure
Unlike the Zend Framework, Hammers template structure is alot simplerHammmer Structure
/ <root>
/libs <libs folder>
/libs/news <news lib folder>
Site Structure
/ <root>
/pages <pages folder>
/pages/news <news folder>
/pages/news/templates <news templates folder>
Now you might be wondering why there is 2 news folders and 2 rootsHammer is kept in a central location, e.g. /Hammer/
and the sites are kept in the sites folder e.g. /Sites/SimpleSite/
The reason for the 2 news folders, the news folder in the site area, is just the action and template
all the hardwork is kept in the libs folder, so that if there is an update to the news library, you only update that, not one for each site