1. Home
  2. Docs
  3. Developer Documentations
  4. Folder structure

Folder structure

Folder Structure

This section explain the folder structure of a plugin and what they contains . below is a snap of how the structure look like

This is test plugin folder structure which contains everything a plugin can have , below explain what each folder and file is doing

css/ Folder

This folder will contains your css files and you will need to register the css files in the loader.php file. You can check how to register css file in this tutorial.

functions/ Folder

This folder will contains your functions you use in managing your plugin, crea8social pro uses a functional way programming because of speed and easy customization for anybody with basic php knowledge. You also need to load any functions file in this folder in the loader.php file, check loading functions tutorial to know how to load a functions file.

html/ Folder

This folder contains your view files  or template files example is list.phtml  which can be called with the view() function to load it.

js/ Folder 

This folder contains your javascript codes and you also need to register it in your loader file as well. You can check how to register js file in this tutorial.

languages/ Folder

This folder contains your languages file like english.php , and note its is good to start with english.php and easily add more language from admin panel

pages/ Folder

This folder contains your pages files , crea8social pro uses what we call pager to load each page just like MVC method in which you need to register each page with pagers in the loader.php file , check how to register pages in this tutorial.


This file contains information about the author of the plugin and name and description of the plugin below is a snap of test plugin info.php


This is the file where all registration and hooking will be and other tutorials will definitely be directing you to register one or two things in this file and you move on with your lesson


This file contain settings that will show up in the user  admincp -> settings  menu below is a snapshot of test plugin settings.php file

Thank you for reading this you can continue with other tutorials

Was this article helpful to you? Yes No

How can we help?