Catchable fatal error: Argument 1 passed to RedBeanPHP \ Util \ DispenseHelper :: dispense () must be an instance of RedBeanPHP \ OODB, null given
This is the error in RedBeanPHP. Trying to create a users table in the database with this method:
$data = $_POST; $user = R::dispense('users'); $user->login = $data['login']; $user->password = $data['password']; $user->email = $data['email']; R::store($user); Already cleaned everything up, and added it, and re-connected the database a hundred times. By the way here is the connection
<?php require 'rb.php'; R::setup('mysql:host=localhost; dbname=baza','root',''); ?> What could be the problem?(