Skip to content

Commit 794cf01

Browse files
committed
add backend friendly search, remove unused use declare
1 parent d98b463 commit 794cf01

File tree

25 files changed

+185
-49
lines changed

25 files changed

+185
-49
lines changed

api/config/params.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
22
return [
33
'adminEmail' => '[email protected]',
4-
'cookbookResourceBaseUrl' => 'http://img.feehi.com/cookbook/'
54
];

api/controllers/ArticleController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* Author: lf
4+
* Blog: https://blog.feehi.com
5+
6+
* Created at: 2017-08-30 18:10
7+
*/
28
namespace api\controllers;
39

410
use yii\web\Response;

api/controllers/SiteController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* Author: lf
4+
* Blog: https://blog.feehi.com
5+
6+
* Created at: 2017-08-30 18:10
7+
*/
28
namespace api\controllers;
39

410
use yii\web\Response;

api/controllers/UserController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* Author: lf
4+
* Blog: https://blog.feehi.com
5+
6+
* Created at: 2017-08-30 18:10
7+
*/
28
namespace api\controllers;
39

410
use yii\web\Response;

api/models/Article.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
* Created by PhpStorm.
4-
* User: Administrator
5-
* Date: 2017/8/30
6-
* Time: 18:10
3+
* Author: lf
4+
* Blog: https://blog.feehi.com
5+
6+
* Created at: 2017-08-30 18:10
77
*/
88
namespace api\models;
99

api/models/User.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
* Created by PhpStorm.
4-
* User: Administrator
5-
* Date: 2017/8/30
6-
* Time: 19:04
3+
* Author: lf
4+
* Blog: https://blog.feehi.com
5+
6+
* Created at: 2017-08-30 19:04
77
*/
88

99
namespace api\models;

api/tests/_support/_generated/FunctionalTesterActions.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php //[STAMP] f4d3bab444f1c55490e25f3fd444ca23
1+
<?php //[STAMP] cec1f7dfb20eb8f5d749e9bb5f8453b6
22
namespace api\tests\_generated;
33

44
// This class was automatically generated by build task
@@ -836,17 +836,6 @@ public function amHttpAuthenticated($username, $password) {
836836
* ?>
837837
* ```
838838
*
839-
* To use special chars in Header Key use HTML Character Entities:
840-
* Example:
841-
* Header with underscore - 'Client_Id'
842-
* should be represented as - 'Client&#x0005F;Id' or 'Client&#95;Id'
843-
*
844-
* ```php
845-
* <?php
846-
* $I->haveHttpHeader('Client&#95;Id', 'Codeception');
847-
* ?>
848-
* ```
849-
*
850839
* @param string $name the name of the request header
851840
* @param string $value the value to set it to for subsequent
852841
* requests
@@ -1495,7 +1484,7 @@ public function dontSeeCurrentUrlMatches($uri) {
14951484
/**
14961485
* [!] Method is generated. Documentation taken from corresponding module.
14971486
*
1498-
* Executes the given regular expression against the current URI and returns the first capturing group.
1487+
* Executes the given regular expression against the current URI and returns the first match.
14991488
* If no parameters are provided, the full URI is returned.
15001489
*
15011490
* ``` php

api/tests/_support/_generated/UnitTesterActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php //[STAMP] 0112931fc08f5c9260ba0fcaec985a07
1+
<?php //[STAMP] b1dac402910735827e4b7d4b72b3fed2
22
namespace api\tests\_generated;
33

44
// This class was automatically generated by build task

backend/actions/CreateAction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* Author: lf
54
* Blog: https://blog.feehi.com

backend/config/main.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
'idParam' => '__backend__id',
2323
'returnUrlParam' => '_backend_returnUrl',
2424
],
25+
'session' => [
26+
'timeout' => 1440,//session过期时间,单位为秒
27+
],
2528
'log' => [//此项具体详细配置,请访问http://wiki.feehi.com/index.php?title=Yii2_log
2629
'traceLevel' => YII_DEBUG ? 3 : 0,
2730
'targets' => [

0 commit comments

Comments
 (0)