Blog LiteUser Manual Visit Blog Lite →
Getting started

Folder structure

A guide to the Blog Lite 2 folders and files: where the code, templates, data and uploads live, and which files are safe to edit.

Blog Lite 2 is organised so you can find things easily. Here is what each folder is for.

blog/
  index.php          public website entry point
  config.php         a few technical options
  admin/             admin panel entry point and its templates
  app/               the code ("engine")
    classes/         one small class per job
    controllers/     one file per kind of page
  themes/default/    public website templates
  assets/            CSS and JavaScript
  data/              your XML data files
  uploads/           your uploaded images

What is safe to edit?

Folder or filePurposeEdit it?
config.phpTime zone, debug mode, folders, upload size.Yes. See config.php options.
themes/default/HTML templates for the public site: layout.php, home.php, post.php and more.Yes. See Customising the design.
assets/css/site.cssStyles of the public site.Yes.
admin/views/Templates of the admin panel.Rarely.
app/classes/The engine: storage, posts, comments, AI, login.Only if you know PHP.
data/Your content in XML files.Back it up, but do not edit while the site is in use. See XML data files.
uploads/Images you upload.Back it up.

The engine in plain words

ClassJob
StorageReads and writes the XML files. The only file that knows the XML format.
PostRepositoryFinds, saves and deletes posts.
CommentRepositoryComments and replies.
CategoryRepositoryCategories.
MessageRepositoryContact form messages.
SettingsBlog options saved from the Settings page.
AuthLogin, sessions and form protection.
AiGeneratorTalks to Groq, DeepSeek or OpenAI.
ImageUploaderSaves uploaded images safely.
ViewShows a template inside a layout.

Protected folders

The data, app and admin/views folders contain .htaccess files that block direct downloads on Apache. On Nginx you must add the rules yourself. See Security.

Last updated