By Anonymous (not verified) on
Hi am new to drupal. I have started to learn things out in drupal, but i am finding it difficult when it comes to execution.
Can any one help me to create a module.Whats the proper procedure(simple example will be helpful).
I also want to know how am i supposed to connect to pgsql. If any one can also give me sites that will help me to learn things better , i will be happy.
Comments
Available Documentation
If you're ready to start developing for Drupal, you probably want to look at:
About connecting to the database: If you already have Drupal correctly installed, you do not need to "connect" to pgsql from your code, because Drupal does that for you automatically. You can just run the SQL commands.
Some additions:- in the
Some additions:
- in the documentation for developers, start reading here: http://drupal.org/node/231276
- there are some well documented example modules in the api documentation: http://api.drupal.org/api/search/6/example.module
- when you use the Drupal database abstraction layer (see http://api.drupal.org/api/group/database/6) you usually don't have to have to write specific pgsql code
- tip: make sure you understand the concept of Drupal hooks
- tip 2: learn to find your way around the API doucmentation at http://api.drupal.org
If you tell us what kind of module you will be writing (what does it do? how should it work?), we can probably provide some more specific tips.
Thanks
Thank you very much for ur help.. am at learning stage and it has been really helpful