diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-20 00:41:45 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-07-20 00:41:45 +0200 |
commit | b59164b0b7451905adcca244e6395281eb0633ca (patch) | |
tree | 098111b525b796221a931aaae5c1688cf1a45d88 /fai_gestion/config | |
parent | 76ab63096a25f5bf7b9d076cdc9ab3fc5218d216 (diff) | |
download | chd_gestion-b59164b0b7451905adcca244e6395281eb0633ca.zip chd_gestion-b59164b0b7451905adcca244e6395281eb0633ca.tar.gz chd_gestion-b59164b0b7451905adcca244e6395281eb0633ca.tar.bz2 |
bake add Search filter support
Diffstat (limited to 'fai_gestion/config')
-rw-r--r-- | fai_gestion/config/bake_extra.php | 8 | ||||
-rw-r--r-- | fai_gestion/config/bootstrap.php | 11 |
2 files changed, 12 insertions, 7 deletions
diff --git a/fai_gestion/config/bake_extra.php b/fai_gestion/config/bake_extra.php index e33b2a0..559b340 100644 --- a/fai_gestion/config/bake_extra.php +++ b/fai_gestion/config/bake_extra.php @@ -68,23 +68,17 @@ EOT 'mode' => 'like', 'before' => 'true', 'after' => 'true', - 'columns' => ['id','nom','nom2','prenom','prenom2','raison','proprio','tel_mobile1','tel_mobile2'], + 'field' => ['id','nom','nom2','prenom','prenom2','raison','proprio','tel_mobile1','tel_mobile2'], 'colspan' => 3, 'hint' => 'Find...', ], 'adherent_type_id' => [ 'mode' => 'value', - 'before' => 'false', - 'after' => 'false', - 'model' => 'AdherentTypes', 'colspan' => 2, 'hint' => 'AdherentTypes', ], 'ville_id' => [ 'mode' => 'value', - 'before' => 'false', - 'after' => 'false', - 'model' => 'Villes', 'colspan' => 2, 'hint' => 'Villes', ], diff --git a/fai_gestion/config/bootstrap.php b/fai_gestion/config/bootstrap.php index 24f6908..9a77fca 100644 --- a/fai_gestion/config/bootstrap.php +++ b/fai_gestion/config/bootstrap.php @@ -205,3 +205,14 @@ FrozenDate::setToStringFormat('yyyy-MM-dd'); // For any immutable Date //Inflector::rules('transliteration', ['/å/' => 'aa']); Inflector::rules('uninflected', ['relais']); Inflector::rules('irregular', ['interesse' => 'interesses']); + +/* + * Note : Cake 3.6 introduce new way of loading plugins + * src/Application.php: + * public function bootstrap() + * { + * #[...] + * $this->addPlugin('Search'); + * } + * Old-style was adding Plugin::load('Search'); in this file. + */ |