2010-08-31 42 views
0

我正在拍賣一個項目,它是拍賣網站,它實際上是www.swoop.com的 克隆。 這個克隆是在CakePHP平臺上開發的,我在那裏有一個問題。 我從http://www.moneymakersnetwork.info/products/Swoopo-Clone-PHP-Script.html購買該腳本,並且有一個演示:http://demo.bidscout.net(用戶名:demo,密碼:password1)。CakePHP項目問題(FCKEditor和中斷鏈接)

在該cms中有FCKEditor集成,它不工作。這是 給我,以下錯誤消息:

請求的URL /js/fckeditor/editor/fckeditor.html不上 此服務器發現。

此外,嘗試 使用ErrorDocument來處理請求時遇到404未找到錯誤。

如果我添加新的類別它來到一個下拉列表框和那些 鏈接被打破。

好吧,我的主人是這樣的:http://demosite.org/mysite/

應用程序和webroot文件夾位於http://demosite.org/mysite/apphttp://demosite.org/mysite/app/webroot

我有一個cofig.php文件,它是這個樣子(http://demosite.org/mysite/app/config):

<?php 
    $config = array(

     'Database' => array(
      'driver'  => 'mysql', 
      'persistent' => false, 
      'host'  => 'localhost', 
      'login'  => 'myuser',  
      'password' => 'mypassword',  
      'database' => 'mydb',  
      'prefix'  => ''  
     ),  

     'App' => array(
      'encoding'    => 'UTF-8',  
      'baseUrl'    => '',  
      'base'     => '',  
      'dir'     => 'app',  
      'webroot'    => 'webroot', 
      'name'     => 'mysite', 
      'url'     => 'http://demo.org/mysite/', 
      'timezone'    => 'Asia/Jakarta', 
      'language'    => 'en', 
      'email'     => '[email protected]', 
      'theme'     => 'ddbids', 
      'currency'    => 'USD', 
      'pageLimit'    => 100, 
      'bidHistoryLimit'  => 10,  
      'remember_me'   => '+30 days', 
      'auctionUpdateFrequency' => 1, 
      'timeSyncFrequency'  => 9,  
      'gateway'    => true, 
      'demoMode'    => false, 
      'noAutobids'    => false, 
      'cronTime'    => 1, 

      'Image' => array(
       'thumb_width' => 100, 
       'thumb_height' => 100, 
       'max_width' => 340, 
       'max_height' => 230 
      ), 

      'Dob' => array(
       'year_min' => date('Y') - 100, 
       'year_max' => date('Y') - 17 
      ) 
     ), 

     'Paypal' => array(
      'url' => 'https://www.paypal.com/cgi-bin/webscr',  
      'email' => '',  
      'lc' => 'GB' 
     ), 

     'Email' => array( 
      'delivery' => 'smtp', 
      'sendAs' => 'both', 
      'host'  => 'localhost', 
      'port'  => 25, 
      'timeout' => 60, 
      'username' => '', 
      'password' => '' 
     ), 

     'Cache' => array( 
      //'disable' => true, 
      'check' => false, 
      'time' => '' // relative time such as +1 day, +2 months, +3 minutes 
     ), 

     'debug' => 1 

    ); 
?> 

我是很新的CakePHP的。請幫幫我。

+0

你把你的FCK文件放在哪裏??? – RSK 2010-10-02 17:22:37

回答

1

你的問題是,(可能)的鏈接是硬編碼,並期待您的網站是在:這樣你/js/fckeditor/editor/fckeditor.html可以

http://demosite.org/而不是http://demosite.org/mysite/

被發現。

至少這是我聽起來這個問題的方式。

0

只要試試這個。
把整個FCK文件夾放在APP文件夾的js文件夾中,即APP/webroot/js/Editor