tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

couldn't get throught "edit" blog functionality

Open peopzen opened this issue 9 years ago • 7 comments

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!

peopzen avatar Aug 12 '16 14:08 peopzen

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)

adamlundrigan avatar Aug 13 '16 12:08 adamlundrigan

Hi Adam, I moved this question to stack overflow and asked in IRC. So far no result. Thanks.

peopzen avatar Aug 14 '16 13:08 peopzen

I have fixed it. Thanks.

peopzen avatar Aug 15 '16 04:08 peopzen

@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 avatar Aug 15 '16 16:08 weierophinney

@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,
        ],
    ]);

peopzen avatar Aug 16 '16 23:08 peopzen

@weierophinney Is there an expressive skeleton tutorial like MVC skeleton tutorial?

peopzen avatar Aug 17 '16 00:08 peopzen

@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

weierophinney avatar Aug 17 '16 16:08 weierophinney