Line 30:
Line 30:
* Create your box file into '''htdocs/mymodule/core/boxes/'''
* Create your box file into '''htdocs/mymodule/core/boxes/'''
* Once your module descriptor is created, add these lines to declare your box file
* Once your module descriptor is created, add these lines to declare your box file
−
<source lang="php">
+
<syntaxhighlight lang="php">
$this->boxes = array(
$this->boxes = array(
0 => array(
0 => array(
Line 39:
Line 39:
// You can declare as much boxes as you want by simply incrementing the index.
// You can declare as much boxes as you want by simply incrementing the index.
);
);
−
</source>
+
</syntaxhighlight>
* For distribution, package the module containing your box (See [[Module development]] page).
* For distribution, package the module containing your box (See [[Module development]] page).