Skip to content

How to create a module

wakdev edited this page Feb 12, 2013 · 6 revisions

See admin module : /admin/sla_articles/

Files & directories structures

/languages/ (translations)

fr.php

en.php

/models/ (data model)

articles.php

categories.php

/views/ (module views)

default/

css/

images/

view.php

controller.php (module controller)

Controllers

class definition

Admin : class sla_[MODULENAME]_controller extends slaController implements iController

Front : class sl_[MODULENAME]_controller extends slController implements iController

Models

class definition

Admin : class [MODELNAME] extends slaModel implements iModel

Front : class [MODELNAME] extends slModel implements iModel

Views

class definition

Admin : class [VIEWNAME] extends slaView implements iView

Front : class [VIEWNAME] extends slView implements iView