You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace App\Models;
-
- use CodeIgniter\Model;
-
- class UsuarioModel extends Model
- {
- protected $table = 'usuarios';
- protected $primaryKey = 'idusuario';
- protected $useAutoIncrement = true;
- protected $insertID = 0;
- protected $returnType = 'array';
- protected $useSoftDeletes = false;
- protected $protectFields = true;
- protected $allowedFields = [];
-
-
- public function findByUsername($username)
- {
- return $this->where('nombreusuario', $username)->first();
- }
- }
|