Global DOCS update: ~~~ replaced with ```

This commit is contained in:
SilverFire - Dmitry Naumenko
2015-12-02 23:15:28 +02:00
parent c96cbfa8e6
commit cd87d67f34
89 changed files with 399 additions and 398 deletions

View File

@@ -22,7 +22,7 @@ use yii\di\Instance;
*
* The following is an example of using ActiveDataProvider to provide ActiveRecord instances:
*
* ~~~
* ```php
* $provider = new ActiveDataProvider([
* 'query' => Post::find(),
* 'pagination' => [
@@ -32,12 +32,12 @@ use yii\di\Instance;
*
* // get the posts in the current page
* $posts = $provider->getModels();
* ~~~
* ```
*
* And the following example shows how to use ActiveDataProvider without ActiveRecord:
*
* ~~~
* $query = new Query;
* ```php
* $query = new Query();
* $provider = new ActiveDataProvider([
* 'query' => $query->from('post'),
* 'pagination' => [
@@ -47,7 +47,7 @@ use yii\di\Instance;
*
* // get the posts in the current page
* $posts = $provider->getModels();
* ~~~
* ```
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0