Skip to content

Commit

Permalink
Review php intro article
Browse files Browse the repository at this point in the history
  • Loading branch information
Desislava Mihaylova committed Feb 19, 2016
1 parent 2d53f44 commit bdc1312
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 41 deletions.
96 changes: 58 additions & 38 deletions docs/php/introduction.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,70 @@
---
title: Introduction
page_title: Documentation guide for Telerik UI for PHP
title: Overview
page_title: Overview | Telerik UI for PHP
description: "Download and install Telerik UI for PHP, and run a sample application."
previous_url: /tutorials/PHP/build-apps-with-kendo-ui-and-php, /tutorials/PHP/build-apps-with-kendo-ui-and-php-2
description: How to download, install Telerik UI for PHP and run the sample application.
slug: overview_uiforphp
position: 1
---

# Introduction
# Overview

Telerik UI for PHP is a set of PHP classes which help you configure Kendo UI widgets by using server-side code in PHP web sites.
[Telerik UI for PHP](http://www.telerik.com/php-ui) is a set of PHP classes which help you configure Kendo UI widgets by using server-side code in PHP web sites.

## Requirements
## Getting Started

Telerik UI for PHP requires PHP 5.3.3+. The sample application uses [PDO](http://www.php.net/manual/en/intro.pdo.php)
and [SQLite](http://www.php.net/manual/en/ref.pdo-sqlite.php).
Both extensions should be enabled in the PHP configuration (php.ini). The
[phpinfo](http://php.net/manual/en/function.phpinfo.php) function can be used to verify that PDO and the SQLite extensions are successfully installed.
### Requirements

## Download and Install Telerik UI for PHP
* Telerik UI for PHP requires a PHP 5.3.3+ version.
* The sample application uses [PDO](http://www.php.net/manual/en/intro.pdo.php) and [SQLite](http://www.php.net/manual/en/ref.pdo-sqlite.php). Both extensions should be enabled in the PHP configuration (php.ini).
* The [`phpinfo`](http://php.net/manual/en/function.phpinfo.php) function can be used to verify that PDO and the SQLite extensions are successfully installed.

You can download Telerik UI for PHP from the [official download page](http://demos.telerik.com/php-ui/). The distribution zip file
contains the following directories:
### Download and Install

* **/js** - minified JavaScript files.
* **/styles** - minified CSS files and background images used by the themes.
* **/src** - JavaScript and CSS source files. Not available in the trial version.
* **/wrappers/php/lib/Kendo/** - PHP files required to use Telerik UI for PHP.
* **/wrappers/php/** - sample PHP web site.
You can download Telerik UI for PHP from the [official download page](http://demos.telerik.com/php-ui/). The distribution `.zip` file contains the following directories:

## Run the Sample Website
* `/js`—These are the minified JavaScript files.
* `/styles`—The minified CSS files and background images used by the themes.
* `/src`—The JavaScript and CSS source files. Not available in the trial version.
* `/wrappers/php/lib/Kendo/`—The PHP files required to use Telerik UI for PHP.
* `/wrappers/php/`—The sample PHP web site.

You can find a sample PHP web site in the **/wrappers/php/** directory of the Telerik UI for PHP distribution.
To run the web site copy this directory to your web root. Then navigate to **index.php**.
## Sample Application Setup

## Use Telerik UI for PHP in Your PHP Website
### Prerequisites

1. Copy **/wrappers/php/lib/Kendo** to your web site root (for example in your **lib** directory).
2. Copy the Kendo UI JavaScript and CSS files from **/js** and **/styles** to your web site root. If you prefer to use [Kendo UI CDN Service](/intro/installation/cdn-service) skip this and the next steps
and check the [JavaScript Dependencies](/intro/installation/prerequisites) help topic.
3. Include the Kendo UI JavaScript and CSS files in your PHP page:
You can find a sample PHP web site in the `/wrappers/php/` directory of the Telerik UI for PHP distribution. To run the web site, copy this directory to your web root. Then navigate to `index.php`.

### Configuration

To use Telerik UI for PHP in your PHP web site, follow the steps below:

**Step 1** Copy `/wrappers/php/lib/Kendo` to your web site root, e.g. to your `lib` directory.

**Step 2** Copy the Kendo UI JavaScript and CSS files from `/js` and `/styles` to your web site root. If you prefer to use [Kendo UI CDN Service]({% slug kendoui_cdn_services_installation %}), skip this step and the following ones, and check the [article on the JavaScript dependencies]({% slug javascript_prerequisites_kendoui_installation %}).

**Step 3** Include the Kendo UI JavaScript and CSS files in your PHP page.

###### Example

<link href="styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js"></script>
<script src="js/kendo.web.min.js"></script>

> **Important**
> If you want to use Kendo UI Web and DataViz at the same time, you should include **kendo.all.min.js** instead of **kendo.web.min.js** and **kendo.dataviz.min.js**. You can also create a custom JavaScript file using the [Custom Download Builder](https://www.telerik.com/login/v2/telerik?ReturnUrl=https://www.telerik.com/download/custom-download).
> **Important**
>
> If you want to use Kendo UI widgets for the web, including the ones that render data visualization, at the same time, you should include `kendo.all.min.js` instead of `kendo.web.min.js` and `kendo.dataviz.min.js`. You can also create a custom JavaScript file by using the [Custom Download Builder](https://www.telerik.com/login/v2/telerik?ReturnUrl=https://www.telerik.com/download/custom-download).
4. Include the Kendo PHP [Autoload](http://php.net/manual/en/language.oop5.autoload.php) file.
**Step 4** Include the Kendo PHP [`Autoload`](http://php.net/manual/en/language.oop5.autoload.php) file.

###### Example

<?php require_once 'lib/Kendo/Autoload.php'; ?>

5. Use any Kendo UI PHP wrapper:
**Step 5** Use any Kendo UI PHP wrapper.

###### Example

<?php
// Instantiate a new instance of the DatePicker class and specify its 'id'
Expand All @@ -65,7 +78,9 @@ and check the [JavaScript Dependencies](/intro/installation/prerequisites) help
echo $datepicker->render();
?>

###### Example - the complete source
The example below demonstrates the complete source code.

###### Example

<!DOCTYPE html>
<html>
Expand All @@ -91,14 +106,19 @@ and check the [JavaScript Dependencies](/intro/installation/prerequisites) help
</body>
</html>

## Next Step
## Next Steps

Watch the video tutorials on getting started with Telerik UI for PHP in the [Kendo UI YouTube channel](http://www.youtube.com/kendouitv):

* [Get Started with the PHP Wrappers for Kendo UI: Part 1](http://www.youtube.com/watch?v=2Kpgp_nocEI)
* [Get Started with the PHP Wrappers for Kendo UI: Part 2](https://www.youtube.com/watch?v=RQCLqA6Pu_E)
* [Get Started with the PHP Wrappers for Kendo UI: Part 3](https://www.youtube.com/watch?v=zYh6cuU_leQ)

Watch the videos in the [Kendo UI YouTube channel](http://www.youtube.com/kendouitv):
For more examples on how to use Kendo UI with PHP server-side wrappers, visit the [GitHub repository with the collected Kendo UI examples on using PHP](https://github.com/telerik/kendo-examples-php).

1. [Getting Started With The PHP Wrappers For Kendo UI: Part 1](http://www.youtube.com/watch?v=2Kpgp_nocEI)
1. [Getting Started With The PHP Wrappers For Kendo UI: Part 2](https://www.youtube.com/watch?v=RQCLqA6Pu_E)
1. [Getting Started With The PHP Wrappers For Kendo UI: Part 3](https://www.youtube.com/watch?v=zYh6cuU_leQ)
## See Also

For more examples on how to use Kendo UI with PHP wrappers, visit the following GitHub repository:
Other articles on Telerik UI for PHP:

* [Collected Kendo UI Examples on Using PHP](https://github.com/telerik/kendo-examples-php)
* [Telerik UI for PHP API Reference Folder](/api/php/Kendo/UI/AutoComplete)
* [Telerik UI for PHP Tags Folder]({% slug overview_autocomplete_uiforphp %})
8 changes: 5 additions & 3 deletions docs/php/widgets/autocomplete/overview.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
title: Overview
page_title: How to use the AutoComplete PHP class, server-side wrapper for Kendo UI AutoComplete widget
description: Learn how to bind Kendo UI AutoComplete for PHP, handle Kendo UI AutoComplete Events, access an existing autocomplete.
page_title: Overview | AutoComplete PHP Wrapper
description: "Get started with the AutoComplete PHP wrapper in Kendo UI."
slug: overview_autocomplete_uiforphp
position: 1
---

# AutoComplete
# AutoComplete PHP Wrapper Overview

The Kendo AutoComplete for PHP is a server-side wrapper for the [Kendo UI AutoComplete](/api/web/autocomplete) widget.

Expand Down

0 comments on commit bdc1312

Please sign in to comment.