25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EscuelaModel.php 381B

12345678910111213141516171819
  1. <?php
  2. namespace App\Models;
  3. use CodeIgniter\Model;
  4. class EscuelaModel extends Model
  5. {
  6. protected $table = 'escuela';
  7. protected $primaryKey = 'idescuela';
  8. function getEscuelas()
  9. {
  10. return $this->select(['idescuela', 'nombrecorto'])
  11. ->where('status_web', 1)
  12. ->orderBy('nombrecorto')
  13. ->findAll();
  14. }
  15. }