duanjiao6730 2015-04-02 08:55
浏览 38

在链接路线中找不到ZF1父路线


I'm writting an application in Zend Framework 1.12. And there is a problem with routing. I use routing form xml.
Here is part of file:

<panel route="/panel">
    <defaults controller="index" action="index" module="panel"/>
    <chains>
        <summary route="/summary">
            <defaults controller="index" action="index" module="panel"/>
        </summary>
        <user route="/user">
            <defaults controller="user" action="index" module="panel"/>
            <chains>
                <info route="/info">
                    <defaults controller="user" action="index" module="panel"/>
                </info>
                <edit route="/edit">
                    <defaults controller="user" action="edit" module="panel"/>
                </edit>
                <change-password route="/password">
                    <defaults controller="user" action="change-password" module="panel"/>
                </change-password>
            </chains>
        </user>
    </chains>
</panel>

Now the problem: If i declare routes like this the route panel is not seen(No route matched the request). Of course I can split the chains and declare each route separately but I think it is not good idea.
I found a way to address "/panel" will by accessible by adding empty static route to chains(called for example index) bu it will make ony addres accessible no route. Litle explain: By adding this i will have route "panel.index" and the rest but still trying to find route "panel" will end with Exception.

And now the question: Is there a way to make route "panel" visible?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Matlab问题解答有两个问题
    • ¥50 Oracle Kubernetes服务器集群主节点无法访问,工作节点可以访问
    • ¥15 LCD12864中文显示
    • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
    • ¥15 gsoap生成onvif框架
    • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。
    • ¥15 stm32的can接口不能收发数据
    • ¥15 目标检测算法移植到arm开发板
    • ¥15 利用JD51设计温度报警系统
    • ¥15 快手联盟怎么快速的跑出建立模型