Module development: Difference between revisions

Jump to navigation Jump to search
m
Line 55: Line 55:
Scripts for creating tables and load data for your own module must be placed in a directory: Create a subdirectory called "sql" into directory of your module (eg htdocs/mymodule/sql) to put the sql scripts that you will create.  
Scripts for creating tables and load data for your own module must be placed in a directory: Create a subdirectory called "sql" into directory of your module (eg htdocs/mymodule/sql) to put the sql scripts that you will create.  


Then check into your descriptor file, into function init that the line
Then check into your descriptor file, into function '''init''' that the line


<source lang="php">$this->_load_tables('/mymodule/sql/');</source>
<source lang="php">$this->_load_tables('/mymodule/sql/');</source>

Navigation menu