plugins.php 第1行是什么呢?

解决方案 »

  1.   

     
    // +----------------------------------------------------------------------
    // | ThinkPHP                                                             
    // +----------------------------------------------------------------------
    // | Copyright (c) 2008 http://thinkphp.cn All rights reserved.      
    // +----------------------------------------------------------------------
    // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
    // +----------------------------------------------------------------------
    // | Author: liu21st <[email protected]>                                  
    // +----------------------------------------------------------------------
    // $Id$// 定义ThinkPHP框架路径
    define('THINK_PATH', '../../');
    //定义项目名称和路径
    define('APP_NAME', 'Smarty');
    define('APP_PATH', '.');
    // 加载框架入口文件 
    require(THINK_PATH."/ThinkPHP.php");//实例化一个网站应用实例
    $App = new App(); 
    //应用程序初始化
    $App->run();
      

  2.   

    Fatal error: Class 'Smarty' not found in D:\webroot\tphp\Test\Temp\~plugins.php on line 1 
    -----------------------------------------------------------------
    Smarty类在此目录下找不到,你的Smarty.class.php文件在哪个目录下?
      

  3.   

    看看ThinkPHP/Examples/Smarty/下的目录结构就知道了,要把smaty放在PlugIns/SmartyTemplate/目录下