Answer the question
In order to leave comments, you need to log in
How to organize controllers in Silex?
I did first through their services
class StatsController{
protected $app;
function __construct(Application $app){
$this->model = new Stats($this->app);
if(UserHelper::isOnlySalesManager($this->app)){
$this->model->isSalesManager = true;
}
}
}
$admin->get('/stat', 'Controllers\\StatsController::dailyAction')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question