dolibarr-development
Installation
SKILL.md
Dolibarr Developer Skill
When to Use
- Creating or extending a Dolibarr module (custom or external)
- Implementing hooks (
actions_mymodule.class.php) or triggers - Writing DAO/business object classes, SQL table definitions
- Adding menus, tabs, permissions, boxes, exports, CSS/JS
- Building cron/command-line scripts
- Writing PDF/ODT document templates
- Following Dolibarr coding rules (PHP, SQL, HTML norms)
Key Concepts
Architecture
- MVC pattern: Controller (
/* Actions */) + View (/* View */) in same PHP file - Active Record ORM: one class per table with CRUD methods
- Global objects:
$db,$user,$conf,$langs,$mysoc,$hookmanager,$extrafields - Module location: external modules live in
htdocs/custom/mymodule/ - Table prefix: all tables prefixed
llx_