| 1. | Using a text editor, open your web page file (.php file), and put the code below to the top of the file (line 1), to call the 'config.php' file. This will load all the necessary database connection, class declaration files and load session. |
| | <?php include_once("document_path_of_oneadmin_folder/config.php"); include_once($path["docroot"]."common/session.php"); include_once($path["docroot"]."common/css.php"); ?> |
| | * Note: Always insert the above code to the line 1, without any preceding character(s), not even a space. |
| 2. | To display the dynamic title, put the line below between the title tag. |
| | <?php include($path["docroot"]."photogallery/home.title.php"); ?> |
| 3. | In your HTML code, put the line below to call the menu area such as photo search, photo categories, random photo, etc. |
| | <?php include($path["docroot"]."photogallery/home.category.php"); ?> |
| 4. | In the body content of your .php web page file, put the line below to show the gallery's content. |
| | <?php include($path["docroot"]."photogallery/home.gallery.php") ?> |
| 5. | For sample integration code, please refer to the source of this file. To do this, open it with your text editor. |
| ** To find your 'document_path_of_oneadmin_folder', check the path['docroot'] value from the oneadmin/config.php file |