Hi I have the follwong dependencies:
$container['controller'] = function($c) use ($app) {
return new controller( $app );
};
$container['utils'] = function($c) use ($app) {
return new utils( $app );
};
$container['model'] = function($c) use ($app) {
return new model( $app );
};
from controller class I call to MODEL calss like :
$this->continer->model->function() .
this is works perfect , but now from the model I cannot call to "utils" class or other class
$this->continer->utils->function() .
and got :
Notice: Undefined property: Slim\App::$model