[英]can we use multiple models in single controller in slim framework
$this->app->post('/tech-master/stores/config/add', array($this, 'defaultConfig'));
$this->app->get('/tech-master/stores/config/edit/:userId', array($this, 'editConfigById'));
// Created obj of Users model
$this->userObj = new Users();
$this->storeObj = new Stores();
}
how to use multiple models in the single controller for the slim framework 如何在苗条框架的单个控制器中使用多个模型
Yes, you can. 是的你可以。 Slim doesn't care what you do in you route callable.
Slim不在乎您在可呼叫路由中做什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.