# controller New controller file `app/controller/FooController.php`。 ```php **hint** > If there is a 404 inaccessibility, please open `config/app.php`, set `controller_suffix` to `Controller`, and restart。 ## Controller Suffix webman从1.3Version start,Support in`config/app.php`setController Suffix,if`config/app.php`里`controller_suffix`set to empty`''`,则controllerSimilar to the following `app\controller\Foo.php`。 ```php **Note** > Turning off controller reuse requires webman>=1.4.0, which means that before 1.4.0 the controller was reused by default for all requests and could not be changed。 > **Note** > When controller reuse is enabled, the request should not change any properties of the controller, because these changes will affect subsequent requests, for example ```php getModel($id); $model->update(); return response('ok'); } public function delete(Request $request, $id) { $model = $this->getModel($id); $model->delete(); return response('ok'); } protected function getModel($id) { // This method will be reserved after the first request update?id=1 model // If delete?id=2 is requested again, the data of 1 will be deleted if (!$this->model) { $this->model = Model::find($id); } return $this->model; } } ``` > **hint** > Returning data in the controller `__construct()` constructor will have no effect, e.g. ```php