无法找到视图文件,页面模板:lg2006/user/login.php

57.              $controllerLayout str_replace(File_TXT,'.html',$controllerLayout);
58.              if (file_exists($controllerLayout)) {
59.                  $this->template($controllerLayout);
60.              }else{
61.                  $f strpos($name,File_TXT)!==false $name $name.File_TXT;
62.                  Error_msg('无法找到视图文件,页面模板:'.$f);
63.              }
64.            
65.          }
66.          
67.          
51.      }
52. 
53.      // 渲染视图
54.      public function display($name=null)
55.      {
56.          $this->_view->render($name);
57.      }
58.      
59.      // 获取URL参数值
60.      public function frparam($str=null$int=0,$default FALSE$method null){
61.          
146.          $token getRandChar(32);//系统内置32位随机数,混淆前台规则猜测(MD5)
147.          $_SESSION['token'] = $token;
148.          $this->token $token;
149.       
150.        
151.          $this->display($this->template.'/user/login');
152.      }
153. 
154.    function register(){
155.        if($this->webconf['isregister']==0){
156.            Error(JZLANG('系统已关闭会员注册!'));
315.                  }
316.              
317.              }
318.          }
319.          $dispatch = new $controller($param);
320.          $dispatch->$actionName($param);
321.         
322.          
323.          
324.          
325.      }
78.          spl_autoload_register(array($this'loadClass'));
79.          $this->setDbConfig();
80.          $this->setReporting();
81.          $this->removeMagicQuotes();
82.          //$this->unregisterGlobals();
83.          $this->route();
84.          
85.      }
86. 
87.      // 路由处理
88.      public function route()
445. 
446.  // 加载配置文件
447.  $config = require(APP_PATH 'conf/config.php');
448. 
449.  //实例化核心类
450.  (new frphp($config))->run();
34. 
35.  //定义静态文件路径
36.  define('Tpl_style','/static/');
37. 
38.  // 加载框架文件
39.  require(APP_PATH 'frphp/fr.php');
40. 
41.  // 就这么简单~
42. 
Baidu
map