Module development: Difference between revisions

Jump to navigation Jump to search
m
Line 195: Line 195:


=== Create a new PHP screen ===
=== Create a new PHP screen ===
You must then create your PHP pages that will show/edit data from tables using the skeleton templates provided as an example in the directory '''dev/skeletons''' (For the development of a script from the command line, see [[Script development]]).
You must then create your PHP pages that will show/edit data from tables using the skeleton templates provided as an example in the directory '''modulebuilder/myobject_page.php''' (For the development of a script from the command line, see [[Script development]]).


To create a new user screen, create a subdirectory of '''htdocs''' (if not already done) for your module (in '''htdocs/mymodule''' for example) to store the pages you will create.
To create a new user screen, create a subdirectory of '''htdocs''' (if not already done) for your module (in '''htdocs/mymodule''' for example) to store the pages you will create.


Copy, into that directory, the file '''skeletons_page.php''' that will serve as a starting point for your page file.
Copy, into that directory, the file '''myobject_page.phpp''' that will serve as a starting point for your page file.
Edit the file to have a correct relative path to the main.inc.php file.  
Edit the file to have a correct relative path to the main.inc.php file.  
<source lang="php">
<source lang="php">

Navigation menu