Extjs KJSencha Formhandler注释不';行不通

Extjs KJSencha Formhandler注释不';行不通,extjs,extjs4,zend-framework2,Extjs,Extjs4,Zend Framework2,我正在使用Zend Framework 2的KJSencha模块来处理ExtJS。 模块是根据文档配置的。其他一切都很好 我的应用程序必须包含应用程序和后端模块。应用程序为空,但已定义layout.phtml。后端模块具有index.phtml和IndexController,其中indexAction()为空 Backend\Direct\Model中有三种模型:对象、单个和集合。它们是用来直接使用的 Backend\config\module.config.php 'kjsencha' =&

我正在使用Zend Framework 2的KJSencha模块来处理ExtJS。 模块是根据文档配置的。其他一切都很好

我的应用程序必须包含应用程序和后端模块。应用程序为空,但已定义layout.phtml。后端模块具有index.phtml和IndexController,其中indexAction()为空

Backend\Direct\Model中有三种模型:对象、单个和集合。它们是用来直接使用的

Backend\config\module.config.php

'kjsencha' => array(
    'direct' => array(
        'services' => array(
            'Direct.Tree' => 'Backend\Direct\Model\Tree',
            'Direct.Single' => 'Backend\Direct\Model\Object',
            'Direct.Collection' => 'Backend\Direct\Model\Collection',
        ),
    ),
)
我想让Object->update()成为表单处理程序

我花了几个小时寻找原因,但apiBuilder仍然没有在我的方法中附加'formHandler:true'

除了这个,还有什么事要做吗

namespace Backend\Direct\Model;

class Object extends \Backend\Direct\Entity
{
    // .....

    /**
     * @\KJSencha\Annotation\Formhandler
     *
     */

    public function update($entity, $id)
    {
        // TODO: Implement update() method.
        return array();
    }
    // .....
}
Application\view\layout\layout.phtml

<?php
    echo $this->doctype(); ?>
<html lang="en">
<head>
    <meta charset="utf-8">
    <?php echo $this->headTitle('PROM-PC v.2') ?>
<?php

    echo $this->headLink();
    echo $this->headScript();
    ?>
</head>
<body>
<?php

    echo $this->content;
    echo $this->inlineScript();
?>

</body>
</html>
这是同样的问题

解决方案: 尝试将行尾从Windows转换为Unix样式

这是Zend\Reflection的错误吗

<?php

$this->extJs()->loadLibrary();

// load custom variables set in configuration
$this->kjSenchaVariables();

// add loader configuration, which tells where ExtJs classes have to be loaded from
$this->kjSenchaLoaderConfig();

// preloads modules required to get the app running
$this->kjSenchaDirectApi();

// loads your actual application script (usually at the end of your body tag)
$this->inlineScript()->appendFile($this->basepath() . '/backend/js/app.js');
Ext.direct.Manager.addProvider({"type":"kjsenchamoduleremoting","url":"\/kjsencha\/rpc\/","actions":{"Direct.Tree":[{"name":"read","len":2},{"name":"update","len":2},{"name":"create","len":2},{"name":"destroy","len":2}],"Direct.Single":[{"name":"read","len":2},{"name":"create","len":2},{"name":"update","len":2},{"name":"destroy","len":2}],"Direct.Collection":[{"name":"read","len":2},{"name":"create","len":2},{"name":"update","len":2},{"name":"destroy","len":2}],"KJSencha.echo":[{"name":"__construct","len":1},{"name":"greet","len":1}]}});