A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: controllers/Blog.php

Line Number: 356

Backtrace:

File: /home4/mavenbmt/public_html/maventricksdemo.co.in/mercato_theme/application/controllers/Blog.php
Line: 356
Function: _error_handler

File: /home4/mavenbmt/public_html/maventricksdemo.co.in/mercato_theme/index.php
Line: 315
Function: require_once

The basic file structure for your module will be divided into two sections, the admin and the catalog folders. The contents of each folder will follow the MVC-L framework respectively, with the difference that the admin will deal solely with backend functionality, and the catalog with frontend functionality. Users of your module will interact and configure its settings in the administration side of the store. Therefore, the files in the admin folder will handle any changes to its settings, the way the module is displayed in the administration, install/uninstalling the module, etc. Likewise, the way the module is displayed and how it works in the front end of the store will be handled by the files in the catalog folder.

file struct

The image above displays a skeleton of the directory structure that your module should follow. A good way to get started with your module is to duplicate the folder structure and create the files above. What will go in those files is determined by what your module is trying to accomplish, but the basic functionality is detailed in the sections below.

Admin module functionality

When a store owner uses your module, they will want to edit the module's configuration options in the admin in order to decide which layouts to display the module on, whether it is enabled or disabled, and any module specific options. As the module developer, you will need to create the admin page where the module may be edited and the configuration options added or adjusted.

All admin files are located in the admin/ folder. You will find four folders within the admin/ folder:

  1. controller
  2. view
  3. language
  4. model

Comments

  • stephan

    20-Oct-2017 EST

    Thanks For Sharing this Article Clearly Defined about directory

Leave A Reply

Blog | MERCATO

A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: views/innerheader.php

Line Number: 365

Backtrace:

File: /home4/mavenbmt/public_html/maventricksdemo.co.in/mercato_theme/application/views/innerheader.php
Line: 365
Function: _error_handler

File: /home4/mavenbmt/public_html/maventricksdemo.co.in/mercato_theme/application/views/view_blogs.php
Line: 1
Function: view

File: /home4/mavenbmt/public_html/maventricksdemo.co.in/mercato_theme/application/controllers/Blog.php
Line: 367
Function: view

File: /home4/mavenbmt/public_html/maventricksdemo.co.in/mercato_theme/index.php
Line: 315
Function: require_once