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 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭