Skip to content

Commit

Permalink
Création des modèles pour les filtres de recherche par lieux #23
Browse files Browse the repository at this point in the history
  • Loading branch information
BastLast committed Jun 2, 2022
1 parent 6263346 commit 9b44cce
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/Models/AgirModel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php namespace App\Models;

use CodeIgniter\Model;

/**
* agirModel
* @package App\Models
*/
class AgirModel extends Model
{
protected $table='argir';

protected $allowedFields=['idSaad','idSecteur'];

}
15 changes: 15 additions & 0 deletions app/Models/CodePostalModel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php namespace App\Models;

use CodeIgniter\Model;

/**
* codePostalModel
* @package App\Models
*/
class CodePostalModel extends Model
{
protected $table='code_postal';

protected $allowedFields=['id','idSecteur'];

}
15 changes: 15 additions & 0 deletions app/Models/SecteurModel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php namespace App\Models;

use CodeIgniter\Model;

/**
* SecteurModel
* @package App\Models
*/
class SecteurModel extends Model
{
protected $table = 'secteur';

protected $allowedFields = ['id', 'nom'];

}

0 comments on commit 9b44cce

Please sign in to comment.