Tuesday, May 14, 2013

Phpfox - Creating Your First Add-on : Creating A Module & Controller


Creating A Module

Extension >> Module >> Create New Module

Product : PhpFox Sample Product
Module ID: phpfox_sample better to place the name of product id itself
Add to Menu: YES
Sub Menu: Fill it if needed drop down menu’s
Info : Short discription about module

Then go to the folder structure and create

Module -> phpfox_sample

/include/
/include/component/
/include/component/ajax/
/include/component/block/
/include/component/controller/
/include/plugin/
/include/service/
/static/
/static/css/default/default/
/static/image/
/static/jscript/
/template/
/template/default/
/template/default/block/
/template/default/controller/

Creating a Controller

Controllers are PHP classes that control all the pages on phpFox.

module ->phpfoxsample -> include -> component -> controller
index.class.php

No comments:

Post a Comment