From bdc1312d67fbfa15af8f0b67a7b3892e0bfd20a2 Mon Sep 17 00:00:00 2001 From: Desislava Mihaylova Date: Fri, 19 Feb 2016 11:21:00 +0200 Subject: [PATCH] Review php intro article --- docs/php/introduction.md | 96 ++++++++++++++--------- docs/php/widgets/autocomplete/overview.md | 8 +- 2 files changed, 63 insertions(+), 41 deletions(-) diff --git a/docs/php/introduction.md b/docs/php/introduction.md index 62a87edf443..aeea86d0684 100644 --- a/docs/php/introduction.md +++ b/docs/php/introduction.md @@ -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 - > **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 -5. Use any Kendo UI PHP wrapper: +**Step 5** Use any Kendo UI PHP wrapper. + +###### Example render(); ?> -###### Example - the complete source +The example below demonstrates the complete source code. + +###### Example @@ -91,14 +106,19 @@ and check the [JavaScript Dependencies](/intro/installation/prerequisites) help -## 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 %}) diff --git a/docs/php/widgets/autocomplete/overview.md b/docs/php/widgets/autocomplete/overview.md index 9f30dd8fe02..86718902986 100644 --- a/docs/php/widgets/autocomplete/overview.md +++ b/docs/php/widgets/autocomplete/overview.md @@ -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.