daux.io/docs/cms/15_SDK/05_PHP/05_Setup.md

10 lines
454 B
Markdown
Raw Normal View History

2013-06-12 21:42:00 +02:00
Create (or add) the 'config.json' and 'connector.php' files to the root of your website.
The connector.php file is the root of the CMS's power. To create a connection to the API server, include the connector.php file and create an instance of the Todaycms class using php.
```php
<?php include($_SERVER["DOCUMENT_ROOT"]."/connector.php");
$cms = new Todaycms('API_KEY_HERE'); ?>
```
The $cms variable is now availible to start making calls to the api