15.08.2013 Views

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Custom PHP Functions<br />

IMPORTANT!<br />

IMPORTANT!<br />

Custom PHP Functions<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> maintains and displays content via custom<br />

<strong>Ektron</strong> PHP functions and ComObjects. For the custom PHP<br />

functions to work properly, do the following:<br />

• Make sure the php_soap.dll file is in the c:\php folder on the<br />

server where you installed PHP.<br />

• Add the following line to the php.ini file.<br />

extension=php_soap.dll<br />

The php.ini file is located in C:\Windows\php.ini.<br />

• In the ApplicationAPI.php file, set the WSDLpath. The<br />

applicationAPI.php file is located by default in:<br />

http://localhost/CMS400Example/WorkArea/platforms/<br />

PHP/applicationAPI.php<br />

ContentWS.asmx is the web services (WSDL) file that the custom PHP functions<br />

use to talk to <strong>Ektron</strong> <strong>CMS400.NET</strong>. The WSDLpath located in the<br />

applicationAPI.php file must be set to location of the WSDL file. The default<br />

WSDLpath is http://localhost/CMS400Example/WorkArea/<br />

WebServices/ContentWS.asmx. If you have changed the location of<br />

ContentWS.asmx you need to update the WSDLpath. For example, if your site is<br />

www.myektronsite.com, the WSDLpath would be http://<br />

www.myektronsite.com/WorkArea/WebServices/ContentWS.asmx.<br />

• Add the following line to the top of each template.<br />

<br />

This file calls the <strong>Ektron</strong> custom functions file to allow the page<br />

to function properly. It must appear at the top of the template<br />

file.<br />

• If you have upgraded your <strong>Ektron</strong> <strong>CMS400.NET</strong> from an <strong>Ektron</strong><br />

CMS300 version, add the following line between the head tags<br />

for each template.<br />

This only needs to be done if you are upgrading from CMS300 to <strong>CMS400.NET</strong><br />

<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>Developer</strong> <strong>Reference</strong> <strong>Manual</strong>, Version 5.1, Revision 5 489

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!