304
edits
| Line 313: | Line 313: | ||
=== Create your page to edit parameters === | === Create your page to edit parameters === | ||
If your module need several parameters to be setup, you must create a page to edit options ( | If your module need several parameters to be setup, you must create a page to edit options (these options will be saved in the [[Table llx_const|table '''llx_const''']]). | ||
Create a page named '''mymodule_setuppage.php''' that | Create a page named '''mymodule_setuppage.php''' that shows a form for possible options to update them into the above mentioned table. | ||
It is | It is necessary to take an example from a page of the directory '''/admin''' that will show you the way to read/save your parameters. | ||
Put this page into directory '''/admin'''. | Put this PHP page into the directory '''/admin''' of your module (e.g. mymodule/admin/mymodule_setuppage.php). | ||
Then, | Then, within the descriptor file of your module, modify the variable config_page_url to set name of this PHP page (without the path, which is not necesary if the page is inside directory admin). | ||
<source lang="php"> | <source lang="php"> | ||
$this->config_page_url = array("mymodule_setuppage.php"); | $this->config_page_url = array("mymodule_setuppage.php"); | ||
edits