Hi,
Here is my behaviors method …
public function behaviors() {
return [
"access" => [
"class" => AccessControl::className(),
"only" => ["create"],
"rules" => [
[
"allow" => true,
"controllers" => ["user"],
"actions" => ["create"],
"roles" => ["*"]
]
]
]
];
}
Other actions work fine with no problems. But when I click on a "create" action I get the following error …
Call to a member function checkAccess() on a non-object