Skip to content

Code Igniter 3 - error on save with validation #34

@davide-lucchelli

Description

@davide-lucchelli

Hi guys,
I open a more specific issue.
I created a simple user model (like the example one), but when I try to save it with true parameter the model is not saved to db and errors array is empty.
Here is the code:

$User = new \Model\User();
$User->name = 'Davide';
$User->save();
print_R($User->errors);

Thanks,
Davide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions