enter config/web.php, and add the following. Upload is the controller / index is the default module
'defaultRoute'= >' upload/index',
you can try different modules using different entry files, and then different entry files introduce different web.php configuration files
'defaultRoute'= >' module name',
Previous: When will the java local memory be flushed to the main memory?
Next: How to implement the interface of Oauth2.0 's refresh token?
$model = new Test(); $model->uuid = new Expression( UUID() ); $model->create = new Expression( NOW() ); if($model->save() === false) { echo(json_encode($model->getErrors()));exit; } else echo( saved ); the output is shown as:...
premise: to generate a landing page according to a template, DB stores only the pictures or text information to be replaced. < hr > to make an online landing page creation tool, how to realize the preview function after the H5 page is finished, simil...
the default RESTful, in the advanced application template prompts 405 Method Not Allowed [version 2.0] except GET I follow the similar method of creating a new application body in the advanced application template in this article, copy the Backend app...
: public function getMemberPhysicalTestDate() { $arr = MemberPhysicalTest::find() ->alias( mpt ) ->joinWith([ member m ],FALSE) ->where([ m.member_account_id => $this->accountId, ...
app public function getSustainedDays($accountId) { $list = $this->getMotionDates($accountId); $times = 0; if ($list) { $i = 0; $j = 0; $dates = strtotime(date("Y-m-d",$list[0][ entry_time ])); fo...
class A { const STR = "A"; public function x() { echo self::STR; } } class B extends A{ const STR = "B"; } (new B)->x(); the final output is A. how do you underst...
sign out as written in the document: Yii::app()->user->logout(); the result reported a 500 error. ERROR: 2018-06-28 14:18:20 ip[127.0.0.1] requestId[951106107] [exception.CException] callId[0] [] CException: Session and its behaviors do not ...
yii2 framework, debug toolbar is not displayed after opening debug, online environment does not display, but offline can be displayed as shown below, none online. After the code is uploaded online, only the database configuration is modified, but the r...
No one answered once before, probably because the description of the question is not very detailed configure the nginx server as follows: add_header Access-Control-Allow-Origin $http_origin; add_header Access-Control-Allow-Headers Cookie,Set-Cooki...
the server uses Aliyun ECS, to build a lampp environment, and the ssl certificate is downloaded from Tencent Cloud, . From the Internet to find some configuration tutorials, has not been successful. Visit your own website http is normal, https is not no...