| 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 and class declaration files. |
| | <?php include_once("document_path_of_oneadmin_folder/config.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 show the upcoming events, put the code below to any area of your web page file that you want it to display. |
| | <?php include($path["docroot"]."calendar/home.upcoming.php"); ?> |
| 3. | To display the event search, and event types, in the menu area of your calendar site, insert the following code. |
| | <?php include($path["docroot"]."calendar/home.menu.php"); ?> |
| 4. | In the body content of your .php web page file, put the line below to show the calendar view. |
| | <?php include($path["docroot"]."calendar/home.calendar.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 |