admin

index file + views (main template and toolbar for front).

It is safe to rename into something else, just need to fix this in the file config.php

cache

It contains caches entire pages, serialized arrays and thumbnails of pictures. You can safely clean.

site

Folder to store all the data of your sites and logs.

site/s1

Each folder with the name s[number] keeps a database, configuration, and list of a connected domains

site/config.php

Admin settings

system

All system files are there. When updates cms, mostly, only there will be changes.

system/assets

Necessary for front and admin scripts and styles. Here are the skins and styles for admin.

system/core

Main application or core of cms.

The basic controller and model, from which all modules.

system/iblock

It stores all the default and custom iblocks.

more about information clocks

system/language

Language packs for modules, iblocks and a template.

system/library

Useful libraries

  • Admin - admin controller
  • Cache - simple cache on files
  • Config - class to work with configs
  • DataTable - base class for modules based on the data table
  • Front - front controller
  • H - class for html snippets. It is mainly used for creating forms, but also contains other components from Bootstrap
  • Loader - loader for models, views, and language packs
  • Meta - model for metadata. It is used in the pages module, but can also be used for other
  • Patcher - class for mass patching of files on the basis of diff
  • Registry - just Registry
  • Request - escaped GET, POST, COOKIE, FILES and SERVER arrays
  • Response - collector all data for the server response
  • User - class for the work with user

system/module

Default and custom modules

system/plugin

Plug-ins

system/bootstrap.php

The main boot file. Loads libraries, configures avtoloader, handler errors and exceptions.

system/functions.php

A set of useful functions

pre($array) - print_r wrapped in <pre>

t($text) - Returns translation of the text

arr2file($array, $filename) - format an array into string representation and stores it in a file

getip() - returns the visitor's IP

tDate($locale, $format [, $timestamp]) - similar to the date(), but the added argument containing language. Allows the use of Russian text months, days of the week and other

elog($string) - writes a string to a common log

render($filepath [, $array]) - a simple templating function. loads file, inserts data from a array and returns a variable

convertToAscii($str) - Converts a string to ascii

token($length) - It generates a random token specified length

pluralize($num, $str1, $str2, $str3) - The plural form of the Russian language. And other if they are similar

str_replace_once($search, $replace, $text) - like str_replace(), but replaces only the first occurrence

template

The folder for all themes

template/default

the default theme

upload

Here uploads all the files and images

vendor

Folder for various libraries and frameworks, loaded by autoloader. Supports namespaces.

.htaccess

Settings for Apache. Contains both needed to work, and further optimized.

config.php

The main configuration file. It contains constant with absolute paths to the main folders

index.php

The main index file.




If you want to know something further - ask in the comments. The documentation will be complemented by your questions.
© Arthur Grand, 2011–2024
Powered by SyDES