• 無法找到視圖文件,頁面模板:cn/tags-details.php

    67.              $controllerLayout str_replace(File_TXT,'.html',$controllerLayout);
    68.              if (file_exists($controllerLayout)) {
    69.                  $this->template($controllerLayout);
    70.              }else{
    71.                  $f strpos($name,File_TXT)!==false $name $name.File_TXT;
    72.                  Error_msg('無法找到視圖文件,頁面模板:'.$f);
    73.              }
    74.            
    75.          }
    76.          
    77.          
    62.      }
    63. 
    64.      // 渲染視圖
    65.      public function display($name=null)
    66.      {
    67.          $this->_view->render($name);
    68.      }
    69.      
    70.      // 獲取URL參數值
    71.      public function frparam($str=null$int=0,$default FALSE$method null){
    72.          
    70.                  
    71.                  JsonReturn(['code'=>0,'data'=>$data]);
    72.              }
    73.              
    74.              
    75.              $this->display($this->template.'/tags-details');
    76.          }else{
    77. 
    78.              $sql ' isshow=1 and newname is null ';
    79.              $page = new Page('tags');
    80.              
    334.                  }
    335.              
    336.              }
    337.          }
    338.          $dispatch = new $controller($param);
    339.          $dispatch->$actionName($param);
    340.         
    341.          
    342.          
    343.          
    344.      }
    89.          spl_autoload_register(array($this'loadClass'));
    90.          $this->setDbConfig();
    91.          $this->setReporting();
    92.          $this->removeMagicQuotes();
    93.          //$this->unregisterGlobals();
    94.          $this->route();
    95.          
    96.      }
    97. 
    98.      // 路由處理
    99.      public function route()
    464. 
    465.  // 加載配置文件
    466.  $config = require(APP_PATH 'conf/config.php');
    467. 
    468.  //實例化核心類
    469.  (new frphp($config))->run();
    47. 
    48.  //定義靜態文件路徑
    49.  define('Tpl_style','/static/');
    50. 
    51.  // 加載框架文件
    52.  require(APP_PATH 'frphp/fr.php');
    53. 
    54.  // 就這么簡單~
    55. 
    中文无码中文有码日韩人妻一区二区