Cannot add entry to express object

Permalink
I receive the following error:
Argument 1 passed to Concrete\Core\Express\Form\AbstractRenderer::__construct() must implement interface Concrete\Core\Express\Form\FormInterface, null given

I've simply created an express object, created a form, and now try to add an entry via the dashboard.

What should I do here?

ob7dev
 
ob7dev replied on at Permalink Reply
ob7dev
UPDATE:
I've gotten the form to work by setting the default form from the Express entity settings for the object.

How do I set the default form programatically instead?
I'm setting this up via a package installer.

Cross reference:https://www.concrete5.org/community/forums/usage/express-object-form...
ob7dev replied on at Permalink Best Answer Reply
ob7dev
To set default form views:
$expressObject->setDefaultEditForm($formObject);

But for some reason my attributes added via $expressObject->addAttributeKeyControl still do not show up in the form!

How do I add a form control for the attribute programatically??? ( continued:https://www.concrete5.org/community/forums/usage/express-adding-form... )