// Load the model class App::uses('Model', 'Model'); // Register the 'User' model class ClassRegistry::init('User'); // Get an instance of the 'User' model class $user = ClassRegistry::init('User'); // Create a new User record $newUser = $user->create([ 'username' => 'johndoe', 'password' => 'secret' ]); // Save the new User record $user->save($newUser);In this example, we load the model class and register the `User` model with ClassRegistry. We then get an instance of the `User` model and use it to create a new user record. This code is from the CakePHP package/library.