public function __construct(Database $model) { $this->model = $model->inCache(false); $fileConfig = APPLICATION_PATH . DS . 'models' . DS . 'CrudRedis' . DS . ucfirst(Inflector::camelize($model->db)) . DS . ucfirst(Inflector::camelize($model->table)) . '.php'; if (File::exists($fileConfig)) { $this->config = (include $fileConfig); } else { $this->config = []; } if (!empty($this->config)) { $this->prepareFields(); } if (get_magic_quotes_gpc()) { $_REQUEST = $this->stripslashes($_REQUEST); } }