Displaying a Block in edit mode
Permalink$bt = BlockType::getByHandle('video_player'); $bt->render('add');
Displays fine.
$bt = BlockType::getByHandle('video_player'); $bt->render('edit');
Errors out with:
'Call to a member function getBlockID() on a non-object'
'<a name="_edit<?php echo $b->getBlockID()?>"></a>'
I know I am missing something.
<form method="post" id="ccm-block-form" class="validate" action="<?php echo $dialogController->action('submit')?>" enctype="multipart/form-data">
What you have is a block type object so it's a generic one, not a specific one with a block ID so I don't think you can have it in edit mode. Edit mode means edit existing values but in your case there are no existing values.