落叶 2011-04-11 19:42:37 3817次浏览 14条回复 0 0 0

如果,在protected下面建一个liarbray的文件夹,并把framework 放到其中,在Index.php修改指向代码

$yii=dirname(__FILE__).'/protected/library/framework/yii.php';

这样会不会因为protected不能直接访问而受限制

  • 回复于 2011-04-11 20:24 举报

    这样做不好,最好把framework放到网站根目录,和protected同级目录。

  • 回复于 2011-04-11 20:46 举报

    恩,所以我才有所担心

  • 回复于 2011-04-11 20:48 举报

    很好,放到里面,不会影响include 而且通过web也不会访问到。如果要放到外面,那就干脆移出web根目录

  • 回复于 2011-04-11 20:49 举报

    感觉这个版本的DISCUZ对IE9支持的不是太好 ,每次发贴都要刷新一下才能发成功,登录也是的

  • 回复于 2011-04-12 09:58 举报

    [attach]64[/attach]

    Like this?

  • 回复于 2011-04-12 09:58 举报

    index.php 代码

    <?php
    // change the following paths if necessary
    $yii=dirname(__FILE__).'/protected/framework/yii.php';
    $config=dirname(__FILE__).'/protected/frontend/config/main.php';
    // remove the following lines when in production mode
    defined('YII_DEBUG') or define('YII_DEBUG',true);
    // specify how many levels of call stack should be shown in each log message
    defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
    require_once($yii);
    Yii::createWebApplication($config)->run();
    
  • 回复于 2011-04-12 10:00 举报

    我这个版本貌似就是未来的。。。然后他在我楼上。。。晕。

  • 回复于 2011-04-12 10:52 举报

    你怎么报错了啊 我现在都是把framework 放在pritected/library/framewor下的 不报错的 而且有代码提示

  • 回复于 2011-04-12 10:55 举报

    这个报错 属于检测的范畴吧。

  • 回复于 2011-04-12 11:01 举报

    [attach]66[/attach]

  • 回复于 2011-04-12 13:29 举报

    楼上的发不了附件吗?

  • 回复于 2011-04-12 13:40 举报

    用IE的原因,不知道为什么IE9对DZ7.2支持不是太好 ,每次上传都要刷新一下,而且上传附件老是不成功

  • 回复于 2011-04-12 13:40 举报

    可能是设置问题,我试一下!

  • 回复于 2011-04-12 13:44 举报

    恩 我先去上课了

您需要登录后才可以回复。登录 | 立即注册