找不到zend语言环境页面

时间:2015-03-19 00:20:40

标签: php wordpress zend-framework

我的任务是将网站www.guilherminashoes.com克隆到另一个域名下的另一个域名www.guilherminashoesna.com。

除非我点击链接将页面翻译成英文,否则一切正常。我找不到页面。

点击“ENG”时被调用的链接是:

http://guilherminashoesna.com/site.php/locale/index/lang/en/url/http%3A%2F%2Fguilherminashoesna.com%2Fsite.php%2F

site.php的代码如下:

<?php
ini_set('display_errors', 'on');

ini_set('error_reporting', E_ALL);

try {

    // Define path to application directory
    defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/private/application'));

    // Define application environment
    defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));

    // Ensure library/ is on include_path
    set_include_path(implode(PATH_SEPARATOR, array(realpath(APPLICATION_PATH . '/../library'))));

    /** Zend_Application */
    require_once 'Zend/Application.php';

    // Create application, bootstrap, and run
    $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');

    $application->bootstrap()->run();

} catch (Exception $e) {
    die($e->getMessage());
}

此功能在www.guilherminashoes.com上完全正常,但在www.guilherminashoesna.com上无法解决我在这里可能缺少的任何想法吗?

1 个答案:

答案 0 :(得分:1)

我自己意外地解决了这个问题....我所做的就是调用这个网址:

    http://guilherminashoesna.com/site.php/locale/index/lang/en/url/

而不是:

    http://guilherminashoesna.com/site.php/locale/index/lang/en/url/http%3A%2F%2Fguilherminashoesna.com%2Fsite.php%2F