【问题标题】:Kohana routing errorKohana 路由错误
【发布时间】:2012-12-26 19:22:07
【问题描述】:

我不断收到此错误:

Unable to find a route to match the URI: notifications/send

当我尝试访问操作发送通知时,但当我尝试访问通知时它工作正常..

这是我的代码:

Route::set(
    'notifications', 
    'notifications(<action>)',
    array(
        'action' => 'index|send'
    )
)
->defaults(
    array(
        'controller' => 'notifications', 
        'action' => 'index'
    )
);

【问题讨论】:

    标签: php kohana-3.2


    【解决方案1】:

    您缺少/

    notifications(&lt;action&gt;) 应该是notifications(/&lt;action&gt;)

    【讨论】:

      猜你喜欢
      • 2013-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多