Model_retreatlogs.php 414 B

1234567891011121314
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Model_retreatlogs extends Lin_Model
  3. {
  4. function __construct(){
  5. parent::__construct();
  6. $this->load->database();
  7. $this->table = 'retreatlogs';
  8. $this->load_table('retreatlogs');
  9. }
  10. public function getInfoByNumber($number){
  11. return $this->find("number = '$number'","*","id DESC");
  12. }
  13. }