【问题标题】:How to install kohana on subdomain?如何在子域上安装 kohana?
【发布时间】:2013-11-28 19:48:14
【问题描述】:

enter link description here-是我安装Kohana的地方,但是报错了。

Kohana_HTTP_Exception [404]:在此服务器上找不到请求的 URL /。

在引导程序中只写了一条路由(默认):

Route :: set ('default', '(<controller> (/ <action> (/ <id>)))')-> defaults (array (      'controller' => 'page','action' => 'index',));));

在编写的 htacces 中(默认也是)

我在本地机器上安装了应用程序 - 它运行完美,没有错误

请帮帮我

【问题讨论】:

  • 您在 bootstrap.php 中正确设置了base_url 吗?

标签: frameworks installation subdomain kohana


【解决方案1】:

在您的情况下,“默认”路由的默认操作是“测试”。

我怎么知道? 我单击了错误页面上的“参数”链接之一。这是其中的一部分:

protected _route => object Route(5) {
    protected _filters => array(0) 
    protected _uri => string(32) "(<controller>(/<action>(/<id>)))"
    protected _regex => array(0) 
    protected _defaults => array(2) (
        "controller" => string(7) "welcome"
        "action" => string(4) "test"
    )
    protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD"
}

网址http://www.appliedmath.url.ph/welcome/index 工作正常。

Kohana 的默认错误页面在开发过程中非常有用。尝试一下:单击每个带下划线的文本。

【讨论】:

    猜你喜欢
    • 2015-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-24
    • 1970-01-01
    • 1970-01-01
    • 2015-01-16
    • 1970-01-01
    相关资源
    最近更新 更多