$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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.