| Satın Almaya Hazırmısınız? |
|
Events Calendar > Dökümanlar > Integration Guidelines
| Step 1 : Create new PHP page |
Create a web page where you would like to publish your calendar. Save the web page file with .php extension, such as calendar.php.
Note: You can put the file into web root directory or any directory on the server.
|
| |
Step 2 : Find document path |
To ensure that your Event Calendar works regardless the location of your web page, you will need to add your server's Document Path to all the PHP include codes.
To find the Document Path, open the ' /modulescontroller/config.php ' file with your text editor, and note this path down. Let's assume the Document Path is C:/wwwroot/user/modulescontroller/
|
| Step 3 : Call 'config.php' |
Insert the codes as below to your web page file to call the 'config.php', 'session.php' and 'css.php'. This will load all the necessary database connection, class declaration files and css control.
To do this, open the calendar.php file with a text editor, and put it to the topmost line (line 1) of the php file, without any preceded character.
<?php include_once ("C:/wwwroot/user/modulescontroller/config.php");
include_once ("C:/wwwroot/user/modulescontroller/common/session.php");
include_once ("C:/wwwroot/user/modulescontroller/common/css.php"); ?>
| Step 4 : Load Events Calendar menu and content area |
| I. | 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("C:/wwwroot/user/modulescontroller/calendar/home.upcoming.php"); ?>
|
| II. | To display the event search, and event types, in the menu area of your calendar site, insert the following code.
<?php include("C:/wwwroot/user/modulescontroller/calendar/home.menu.php"); ?>
|
| III. | In the body content of your .php web page file, put the line below to display the calendar view.
<?php include_once("C:/wwwroot/user/modulescontroller/calendar/home.calendar.php"); ?>
|
| Step 5 : View integration result |
Now, proceed to your web page URL, eg: ' http://your-domain-name/calendar.php ' to view your Event Calendar front-end integration result.
To preview your sample calendar page in real time, click on the 'front-end' link on the top right menu from within the Web Modülleri panel.
|
Back to the top
|
|
|
|