the created model does not work 'User' |
Hello, friends!
dump: Code: CREATE TABLE IF NOT EXISTS `user` ( app\Models\UserModel.php: Code: <?php namespace App\Models; app\Controllers\Home.php : Code: <?php namespace App\Controllers; Result: Whoops! We seem to have hit a snag. Please try again later... -------------- Help me!
Understood! id_user nothing to do with!
\ Models \ UserModel.php: protected $useSoftDeletes = false; or protected $useSoftDeletes = true; but add to the database table field: `deleted` tinyint(1) unsigned NOT NULL DEFAULT '0'
Good find! $useSoftDeletes will always presuppose the `deleted` column. For future troubleshooting, if you get "Whoops! We seem to have hit a snag." you can get to the underlying error by checking the log files (might require enabling logging, https://codeigniter4.github.io/CodeIgnit...gging.html) or by setting your environment to "development" which will display the error directly (https://codeigniter4.github.io/CodeIgnit...ments.html).
|
Welcome Guest, Not a member yet? Register Sign In |