SCPHP - Installation

Skip to end of metadata
Go to start of metadata

1) Installation

In order to install SCPHP copy the SmartClient Library into your application folder. You should place it inside you appication's library folder.

After that, place SmartClient JS files inside your Javascript folder.

2) Autoload function

SCPHP is separated in different classes and is is a good idea to use the __autoload() function, otherwise you will have to include all classes you use.

Here it is an suggestion of how you __autoload() function should look like:

With this function, SCPHP classes will be automatically included and you don't have to worry about including the right files.

3) Include scripts

Before using SmartClient components, you have to include the JavaScript files. This is easily done with the includeScripts() function.

Example:

Remember to set the correct path of the SmartClient JS files ( the ones that you copied on step 1 ).

4) Next steps

Now you can start checking our tutorials to become more familiar with SCPHP.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.