Warning: Smarty error: unable to read resource: "admin/login.html" 
in F:\web\common\smarty\Smarty.class.php on line 1092 
怎么解决??

解决方案 »

  1.   

    admin/login.html 没有这个文件。读不到
      

  2.   

    admin/login.html 是有的呀 权限不够 是怎么理解?
      

  3.   

    <?php
     include("admin.global.php");
     if(isset($_POST[username]))
     {
      $username=$_POST['username'];
      $pwd=$_POST['pwd'];
      $checkcode=$_POST['checkcode'];
      $site_url= SITE_URL."admin/login.php";
      
     if(empty($username)){ 
          $login_action->get_admin_msg($site_url,$LANG['us_empty']);
        }
        else if(empty($password)){
        $login_action->get_admin_msg($site_url,$LANG['ps_empty']);
        }
        else if(empty($checkcode)){
            $login_action->get_admin_msg($site_url,$LANG['code_empty']);
        }
        
        else
        {
         $login_action->get_user_login($username,$password,$checkcode);
        }
          
     }     
     $check=$login_action->checkcode('checkcodestr', 8);$smarty->assign("check",$check); 
    $smarty->display("admin/login.html");
    ?>
    =======================================
    templates/admin/login.html
    这样没有错吧  
      

  4.   

    在Dreamweaver下光标移动到$smarty->display("admin/login.html");
    的“”中间,然后按ctrl+d。如果打开了说明路径对了。提示错误则路径错了。
    admin/login.html表示在你这个文件的同层次有个admin的文件夹哦~你确定有吗?
      

  5.   

    admin/login.html表示在你这个文件的同层次有个admin的文件夹哦~你确定有吗?
    --->>>确定是有的 
      

  6.   

    配置文件1
    $smarty_template_dir    = __WEB_ROOT."/tamplates/";
    $smarty_compile_dir     =  __WEB_ROOT."/templates_c/";
    $smarty_config_dir      =  __WEB_ROOT."/configs/";
    $smarty_cache_dir       =  __WEB_ROOT."/cache/";
    $smarty_caching         =false;
    $smarty_delimiter       =explode("|","{|}");
    ===============================================
    define('__WEB_ROOT', dirname(__FILE__)."/./.."); 
    包含配置文件1
    include __WEB_ROOT."/common/smarty/Smarty.class.php";
    $smarty = new smarty();
    $smarty->template_dir    = $smarty_template_dir;
    $smarty->compile_dir     = $smarty_compile_dir;
    $smarty->config_dir      = $smarty_config_dir;
    $smarty->cache_dir       = $smarty_cache_dir;
    $smarty->caching         = $smarty_caching;
    $smarty->left_delimiter  = $smarty_delimiter[0];
    $smarty->right_delimiter = $smarty_delimiter[1];我觉得是配置文件出了问题  但是不知道怎么改了 ?