2011-01-21 15 views
0

Zendを使用してFckeditorを実装するにはどうすればよいですか。Zend Frameworkを使用したFckeditor

私は、ビュー上でこれを持っている: アプリケーションエラー

例外情報:

メッセージ:リソース 'jsの'

が見つかりません

要求

src="/js/fckeditor.js"></script>..etc.. 

<textarea name="profileDescription" id="ckeditor"..etc.. 

window.onload = function() 
    { 
     if(document.getElementById('ckeditor')) { 
      var oFCKeditor = new FCKeditor('ckeditor') ; 
      oFCKeditor.BasePath = "<?php echo BASE_URL; ?>js/fckeditor.js"; 
      oFCKeditor.Height = 500; 
      oFCKeditor.Width = 700; 
      oFCKeditor.ReplaceTextarea() ; 
     } 
    }; 

が、私はこのエラーを取得しますパラメータ:

array (
    'controller' => 'js', 
    'action' => 'fckeditor.jseditor', 
    'module' => 'default', 
    'InstanceName' => 'ckeditor', 
    'Toolbar' => 'Default', 
) 
+0

どこにckeditorを追加する予定ですか? –

+0

infomattionを追加してください、zendフレームワーク用のckeditorモジュールが見つかりませんでした。 http://www.harikt.com/content/add-wysiwyg-ckeditor-zendtextarea-element-zendform助けるかもしれない –

+0

私はsrcが/public/js/fckeditor.jsでなければならないと思う(08/15 ZF Application内) – opHASnoNAME

答えて

0

この種のファイルを読み取るには、htaccessを作成する必要があります。

これはZFプロジェクトに私のデフォルトのhtaccessである:

AddDefaultCharset utf-8 

ServerSignature off 

SetEnv APPLICATION_ENV development 

<IfModule mod_headers.c> 
    Header unset Server 
    Header unset X-Powered-By 
</IfModule> 

<IfModule mod_php5.c> 
    php_flag register_globals off 
    php_flag magic_quotes_gpc off 
</IfModule> 


RewriteEngine On 

RewriteBase /proj_rodrigo/public/ 

RewriteCond %{REQUEST_FILENAME} -s [OR] 
RewriteCond %{REQUEST_FILENAME} -l [OR] 
RewriteCond %{REQUEST_FILENAME} -d 
RewriteRule ^.*$ - [NC,L] 
RewriteRule ^.*$ index.php [NC,L] 

はたぶんあなたのhtaccessファイルは、この部分のように少し異なります。

RewriteRule !\.(phtml|swf|jar|js)index.php 

この1つはあなたのフォーマットである場合は、ちょうどにJSを追加()内の情報。

希望します。 よろしくお願いします。

関連する問題