I could use a little help… I´m trying to build a “contactform” block.
My problem is, that I get the error
Block error: "Cannot use object of type Kirby\Cms\Block as array" in block type: "contactform". I think the error is thrown, because I try to access $data[‘somevalue’] in the template. I guess I have to pass $data to the block somehow.
As far as I know it is not possible to create controllers for blocks, right? Where to put the controller code?