When you want to create a new module, there are several steps you must follow.

Let’s say you want to create a Manager module. These are the steps:

  • create the folders/file where the MVC files will be stored:
    • folder controller/manager(C), DotKernel/manager(MV)
    • file controller/IndexController.php – is the Front Controller of the module
  • create the folders/files related to the View – User Interface
    • templates/manager
    • templates/css/manager
    • templates/js/manager
  • create the configuration folder
    • configs/manager
  • add the line: resources.modules.manager = manager in configs/application.ini
  • enter the appropriate values in configs/resources.xml

Download this file: Sample Module: manager and read the readme.txt to install this module in your DotKernel application.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>