# How to configure my new module?

**URL:** <https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925>\
**Category:** Developing for Dolibarr\
**Created:** [August 24, 2017, 10:47am UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925 "2017-08-24T10:47:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhattaxay](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/b/ee7513/32.png) [@bhattaxay](https://www.dolibarr.org/forum/u/bhattaxay)\
**Post date:** [August 24, 2017, 10:47am UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/1 "2017-08-24T10:47:11Z")

</div>

How to configure my new module in dolibarr?

---

<div class="post-metadata">

**Author:** ![futurehousestore](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/f/8e8cbc/32.png) [@futurehousestore](https://www.dolibarr.org/forum/u/futurehousestore)\
**Post date:** [August 24, 2017, 12:44pm UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/2 "2017-08-24T12:44:07Z")

</div>

what module would you like to configure? To access modules go to:

> [@](#):
>
> Home - Setup - Modules/Applications

---

<div class="post-metadata">

**Author:** ![bhattaxay](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/b/ee7513/32.png) [@bhattaxay](https://www.dolibarr.org/forum/u/bhattaxay)\
**Post date:** [August 24, 2017, 1:12pm UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/3 "2017-08-24T13:12:26Z")

</div>

Thanks for the reply I got it my topic on this link:

---

<div class="post-metadata">

**Author:** ![bhattaxay](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/b/ee7513/32.png) [@bhattaxay](https://www.dolibarr.org/forum/u/bhattaxay)\
**Post date:** [August 24, 2017, 1:13pm UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/4 "2017-08-24T13:13:48Z")

</div>

Now i am not understand how to generate PHP DAO file in those steps, which was given in link.

---

<div class="post-metadata">

**Author:** ![dolibarr95](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/e5b9ba/32.png) [@dolibarr95](https://www.dolibarr.org/forum/u/dolibarr95)\
**Post date:** [August 25, 2017, 2:54pm UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/5 "2017-08-25T14:54:43Z")

</div>

:happy:  
Create a folder in your module /sql in this foloder create a file named :  
databaseprefix\_modulename.sql

in this file the sql :

```auto
CREATE TABLE `databaseprefix_mytable` ...
```

You can also create in this folder a file data.sql and in this file the sql :

```auto
INSERT INTO `databaseprefix_mytable` ...
```

and in your module descriptor

```auto
private function loadTables()
	{
		return $this->_load_tables('/mymodulefolder/sql/');
		
	}
```

---

<div class="post-metadata">

**Author:** ![bhattaxay](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/b/ee7513/32.png) [@bhattaxay](https://www.dolibarr.org/forum/u/bhattaxay)\
**Post date:** [August 28, 2017, 5:07am UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/6 "2017-08-28T05:07:55Z")

</div>

I think you are misunderstanding on my question. I have done with answer, which you have replied. My question is after this step they are generating " out.tablename.class.php". so how this file is generated any idea? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ALSOFT](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/alsoft/32/478_2.png) [@ALSOFT](https://www.dolibarr.org/forum/u/ALSOFT)\
**Post date:** [November 30, 2017, 3:20pm UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/7 "2017-11-30T15:20:00Z")

</div>

You can find the solution at [Generate the PHP DAO class](http://www.alinscribe.com/articles/371/how-to-generate-the-php-dao-class-for-dolibarr-erp-crm.html) . I successfully generated DAO class by reading this article.

---

<div class="post-metadata">

**Author:** ![FHenry](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/fhenry/32/234_2.png) [@FHenry](https://www.dolibarr.org/forum/u/FHenry)\
**Post date:** [December 1, 2017, 9:30am UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/8 "2017-12-01T09:30:16Z")

</div>

The for your return.  
I’ve completed the wiki.  
Since Dolibarr 6.0 you should use the module builder module “dolibarr url”/modulebuilder/index.php

---

<div class="post-metadata">

**Author:** ![ALSOFT](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/alsoft/32/478_2.png) [@ALSOFT](https://www.dolibarr.org/forum/u/ALSOFT)\
**Post date:** [March 6, 2018, 7:09am UTC](https://www.dolibarr.org/forum/t/how-to-configure-my-new-module/15925/9 "2018-03-06T07:09:27Z")

</div>

Thank you very much for your inclusion. Now the document will be less confusing.
