tutorials
tutorials copied to clipboard
couldn't get throught "edit" blog functionality
when clicking "edit", the "edit" page doesn't show existing blog message. when submitting the update, a error comes up.
error: module\Blog\src\Model\ZendDbSqlCommand.php:63 seems no identifier (id) has been submitted.
anyone has same issue? how to fix it? thanks!
Sorry, GitHub Issues is not intended to be a support forum. For help with using the framework please try our IRC channel #zftalk or post a detailed question on Stack Overflow and tag it with the appropriate framework version (v2, v3)
Hi Adam, I moved this question to stack overflow and asked in IRC. So far no result. Thanks.
I have fixed it. Thanks.
@Haolle Is it an issue with the documentation? If so, can you indicate how you resolved the situation so we can update the tutorial?
@weierophinney Thanks. It is not a tutorial issue. I didn't get the modification instruction in init() in PostForm class. However, on the page https://docs.zendframework.com/tutorials/in-depth-guide/zend-form-zend-form-fieldset/, it will be clearer if it explicitly tells to modify
$this->add([
'name' => 'post',
'type' => PostFieldset::class,
]);
to
$this->add([
'name' => 'post',
'type' => PostFieldset::class,
'options' => [
'use_as_base_fieldset' => true,
],
]);
In my case, I understood the modification requirement by adding another
$this->add([
'name' => 'post',
'type' => PostFieldset::class,
'options' => [
'use_as_base_fieldset' => true,
],
]);
@weierophinney Is there an expressive skeleton tutorial like MVC skeleton tutorial?
@Haolle Not yet; @RalfEggert started work on one, but between my schedule reviewing it, and his own busy schedule, it's not yet complete.
You can view what's been done here, though: https://github.com/RalfEggert/zend-expressive-tutorial