Skip to content

Commit

Permalink
update README.md an README_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanLuLyf committed Mar 14, 2020
1 parent 3b72de1 commit 9f21f27
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ Every Model **must extend** ```Model```
> Sample
```php
<?php

use BunnyPHP\Model;

class MessageModel extends Model
{
protected $_column = [
Expand Down Expand Up @@ -300,6 +304,10 @@ Every Controller **must extend** ```Controller```
> Sample
```php
<?php

use BunnyPHP\Controller;

class MessageController extends Controller
{
public function ac_init_cli()
Expand Down Expand Up @@ -399,7 +407,11 @@ If there is ```path(postion)``` or ```path(position,default)```. in the @param a
For example:

```php
class TestController{
<?php

use BunnyPHP\Controller;

class TestController extends Controller {
/**
* @param $name string path(0,Test)
* @param $page integer path(1,1)
Expand Down Expand Up @@ -427,7 +439,11 @@ If the @filter annotation is defined in the function, the ```doFilter``` functio
For example

```php
class TestController{
<?php

use BunnyPHP\Controller;

class TestController extends Controller {
/**
* @filter test
* @filter hello
Expand Down
20 changes: 18 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ return [
> 样例
```php
<?php

use BunnyPHP\Model;

class MessageModel extends Model
{
protected $_column = [
Expand Down Expand Up @@ -300,6 +304,10 @@ select tp_hello.content,tp_hello.id,tp_test.message from tp_hello left join tp_t
> 样例
```php
<?php

use BunnyPHP\Controller;

class MessageController extends Controller
{
public function ac_init_cli()
Expand Down Expand Up @@ -395,7 +403,11 @@ public function ac_test(UserModel $userModel,string $name,int $id=1){
例如:

```php
class TestController{
<?php

use BunnyPHP\Controller;

class TestController extends Controller {
/**
* @param $name string path(0,Test)
* @param $page integer path(1,1)
Expand Down Expand Up @@ -423,7 +435,11 @@ class TestController{
例如

```php
class TestController{
<?php

use BunnyPHP\Controller;

class TestController extends Controller {
/**
* @filter test
* @filter hello
Expand Down

0 comments on commit 9f21f27

Please sign in to comment.